summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-26 15:16:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-26 15:16:28 +0300
commit2f6fc29c613c226d7a3b98fa20c79b2ae8ea1c0f (patch)
tree59c33c5287f4fe4448d34183fbe67d54b1f6f97e
parent493fe46e44eb71aa90da0689f4c924860a413265 (diff)
fixes #3463 (Плагины сообщений: кнопка истории в групповых чатах)
-rw-r--r--src/mir_app/src/srmm_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index a5bb705ae9..0dfe3e31ca 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -765,7 +765,7 @@ void CSrmmBaseDialog::onClick_History(CCtrlButton *pButton)
if (!pButton->Enabled())
return;
- if (m_si != nullptr)
+ if (m_si != nullptr && !m_si->pMI->bDatabase)
ShellExecute(m_hwnd, nullptr, g_chatApi.GetChatLogsFilename(m_si, 0), nullptr, nullptr, SW_SHOW);
else
CallService(MS_HISTORY_SHOWCONTACTHISTORY, m_hContact, 0);