summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_control.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-09 20:36:59 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-09 20:36:59 +0300
commit632b426822098f54939469c4ff9b5ea190a35613 (patch)
treea16f42f31e9f506dc430e205af1cc734461ba973 /plugins/NewStory/src/history_control.cpp
parentc63190338d69b31779ab9cf18a97dd105ef51dca (diff)
fixes #4640 (Telegram: при удалении отдельного сообщения из групчата засерить опцию "удалить для всех")
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r--plugins/NewStory/src/history_control.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp
index 1454165994..c8744915a6 100644
--- a/plugins/NewStory/src/history_control.cpp
+++ b/plugins/NewStory/src/history_control.cpp
@@ -349,8 +349,14 @@ public:
chkDelHistory.SetState(bDelHistory);
chkDelHistory.Enable(bDelHistory);
- chkForEveryone.SetState(false);
- chkForEveryone.Enable(bDelHistory && bForEveryone);
+ if (Contact::IsGroupChat(m_hContact)) {
+ chkForEveryone.SetState(true);
+ chkForEveryone.Disable();
+ }
+ else {
+ chkForEveryone.SetState(false);
+ chkForEveryone.Enable(bDelHistory && bForEveryone);
+ }
if (m_iNumEvents > 1) {
CMStringW wszText(FORMAT, TranslateT("Do you really want to delete selected items (%d)?"), m_iNumEvents);