summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-27 18:51:28 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-27 18:51:33 +0300
commitfad935f73c34a7999f28f7afcb85113110d32b4b (patch)
tree16f4af2bdfd7dd3175fc2cfdefc1780f75240d4c /protocols/Telegram/src/server.cpp
parent3b65d1c0e2965aa5a48cfe84f0033654760a3cc6 (diff)
Telegram: let's ignore typing notifications from channels & groups
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r--protocols/Telegram/src/server.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index abcd38b677..b8206f8a39 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -675,11 +675,14 @@ void CTelegramProto::ProcessChatAction(TD::updateChatAction *pObj)
Srmm_SetStatusText(hContact, TranslateT("Uploading voice note..."));
break;
case TD::chatActionTyping::ID:
- CallService(MS_PROTO_CONTACTISTYPING, pChat->hContact, 30);
+ if (!pChat->isGroupChat)
+ CallService(MS_PROTO_CONTACTISTYPING, pChat->hContact, 30);
break;
case TD::chatActionCancel::ID:
- Srmm_SetStatusText(hContact, 0);
- CallService(MS_PROTO_CONTACTISTYPING, pChat->hContact, PROTOTYPE_CONTACTTYPING_OFF);
+ if (!pChat->isGroupChat) {
+ Srmm_SetStatusText(hContact, 0);
+ CallService(MS_PROTO_CONTACTISTYPING, pChat->hContact, PROTOTYPE_CONTACTTYPING_OFF);
+ }
break;
}
}