diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-25 13:33:29 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-25 13:33:29 +0300 |
commit | 9720a851d0c21d29e6c26c80cf90ac8e4a866fd2 (patch) | |
tree | 51fdf20b93b51238f47bde4eb1a7ed584175a35a /protocols/Telegram | |
parent | f77cc69a03ea7880a780f215c8a77dd285ee6555 (diff) |
Telegram: Reply button should be disabled for channels
Diffstat (limited to 'protocols/Telegram')
-rw-r--r-- | protocols/Telegram/src/menus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Telegram/src/menus.cpp b/protocols/Telegram/src/menus.cpp index e2be884305..fd57a2e771 100644 --- a/protocols/Telegram/src/menus.cpp +++ b/protocols/Telegram/src/menus.cpp @@ -57,7 +57,7 @@ int CTelegramProto::OnPrebuildNSMenu(WPARAM hContact, LPARAM lParam) auto *pDbei = (DB::EventInfo*)lParam; Menu_ShowItem(hmiForward, true); - Menu_ShowItem(hmiReply, mir_strlen(pDbei->szId) > 0); + Menu_ShowItem(hmiReply, mir_strlen(pDbei->szId) > 0 && !Contact::IsReadonly(hContact)); auto *pUser = FindUser(GetId(hContact)); Menu_ShowItem(hmiReaction, pUser && pUser->pReactions); |