diff options
author | George Hazan <george.hazan@gmail.com> | 2024-09-09 20:36:59 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-09-09 20:36:59 +0300 |
commit | 632b426822098f54939469c4ff9b5ea190a35613 (patch) | |
tree | a16f42f31e9f506dc430e205af1cc734461ba973 /plugins/NewStory/src/history_control.cpp | |
parent | c63190338d69b31779ab9cf18a97dd105ef51dca (diff) |
fixes #4640 (Telegram: при удалении отдельного сообщения из групчата засерить опцию "удалить для всех")
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 10 |
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);
|