summaryrefslogtreecommitdiff
path: root/protocols/Dummy/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-15 14:15:11 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-15 14:15:11 +0300
commite54ced72bf59a6ccb42aba5b35e722f5af9e3d17 (patch)
tree1ed5d2341056e4adb35bc66fd5da4be4479e53cf /protocols/Dummy/src/main.cpp
parent8be5860227ab652c5740f26dfa6071990057e6e5 (diff)
fixes #4980 (Dummy: двойной клик по думми-привату открывает историю)
Diffstat (limited to 'protocols/Dummy/src/main.cpp')
-rw-r--r--protocols/Dummy/src/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Dummy/src/main.cpp b/protocols/Dummy/src/main.cpp
index 3805214c02..034231f0b5 100644
--- a/protocols/Dummy/src/main.cpp
+++ b/protocols/Dummy/src/main.cpp
@@ -55,7 +55,10 @@ static int OnDummyDoubleClicked(WPARAM hContact, LPARAM)
{
if (auto *pa = Proto_GetContactAccount(hContact))
if (pa->ppro && pa->ppro->GetCaps(1000)) {
- CallService(MS_HISTORY_SHOWCONTACTHISTORY, hContact, 0);
+ if (Contact::IsGroupChat(hContact))
+ CallService(MS_HISTORY_SHOWCONTACTHISTORY, hContact, 0);
+ else
+ CallService(MS_MSG_SENDMESSAGE, hContact, 0);
return 1;
}