From fad935f73c34a7999f28f7afcb85113110d32b4b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 27 Jan 2025 18:51:28 +0300 Subject: Telegram: let's ignore typing notifications from channels & groups --- protocols/Telegram/src/server.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'protocols/Telegram/src/server.cpp') 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; } } -- cgit v1.2.3