summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-10-06 17:10:54 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-10-06 17:10:54 +0300
commitd154837d8b5110108a219022832744fd6daa9884 (patch)
tree3f28bc1fbe4e75cc3248fb74fc5855e5402fa0de /src/mir_app
parent4f258796441a53b02dcf60daf13d0c6bd3cb2cdd (diff)
fixes #4694 (TabSRMM: сделать иконки форматирования в тулбаре протоколозависимыми)
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/srmm_base.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index 57b03ca48a..e1916826dd 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -545,6 +545,9 @@ bool CSrmmBaseDialog::OnInitDialog()
// three buttons below are initiated inside this call, so button creation must precede subclassing
Srmm_CreateToolbarIcons(this, isChat() ? BBBF_ISCHATBUTTON : BBBF_ISIMBUTTON);
+ if ((CallContactService(m_hContact, PS_GETCAPS, PFLAGNUM_4) & PF4_SERVERFORMATTING) == 0)
+ m_bSendFormat = false;
+
if (!m_bSendFormat) {
m_btnBold.Disable();
m_btnItalic.Disable();