From 6ed0f28f9288a76e479b916f2e579b1a61ac47fd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Jan 2024 14:20:19 +0300 Subject: Srmm_IsCustomLogUsed should take the 'forGroupchats' parameter into consideration --- src/core/stdmsg/src/chat_options.cpp | 2 +- src/core/stdmsg/src/msgoptions.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/stdmsg') diff --git a/src/core/stdmsg/src/chat_options.cpp b/src/core/stdmsg/src/chat_options.cpp index a2354b48a2..2518807485 100644 --- a/src/core/stdmsg/src/chat_options.cpp +++ b/src/core/stdmsg/src/chat_options.cpp @@ -332,7 +332,7 @@ int ChatOptionsInitialize(WPARAM wParam) odp.pDialog = new COptMainDlg(); g_plugin.addOptions(wParam, &odp); - if (!Chat::bEnableCustomLogs) { + if (!Srmm_IsCustomLogUsed(true)) { odp.position = 910000001; odp.szTab.a = LPGEN("Chat log"); odp.pDialog = new COptLogDlg(); diff --git a/src/core/stdmsg/src/msgoptions.cpp b/src/core/stdmsg/src/msgoptions.cpp index 2f9bd7e906..a3206d7e05 100644 --- a/src/core/stdmsg/src/msgoptions.cpp +++ b/src/core/stdmsg/src/msgoptions.cpp @@ -572,7 +572,7 @@ int OptInitialise(WPARAM wParam, LPARAM) g_plugin.addOptions(wParam, &odp); odp.szTab.a = LPGEN("Messaging log"); - odp.pDialog = new COptionLogDlg(Srmm_IsCustomLogUsed() ? IDD_OPT_MSGHIST : IDD_OPT_MSGLOG); + odp.pDialog = new COptionLogDlg(Srmm_IsCustomLogUsed(false) ? IDD_OPT_MSGHIST : IDD_OPT_MSGLOG); g_plugin.addOptions(wParam, &odp); odp.szTab.a = LPGEN("Typing notify"); -- cgit v1.2.3