summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-21 17:46:08 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-21 17:46:08 +0300
commite0c4f139b63d3690a24802e8f051359645b52d09 (patch)
tree6d7b89ddd0b3a83552651370eff85574895a1103 /src
parent36efd5151e53f6ebae280ca9992a1fa824086aef (diff)
CSrmmBaseDialog: read-only contacts' processing
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/srmm_base.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp
index bbd9f4d14b..9851972d7f 100644
--- a/src/mir_app/src/srmm_base.cpp
+++ b/src/mir_app/src/srmm_base.cpp
@@ -519,6 +519,10 @@ bool CSrmmBaseDialog::OnInitDialog()
WindowList_Add(g_hWindowList, m_hwnd, m_hContact);
SetWindowLongPtr(m_hwnd, GWLP_USERDATA, (LONG_PTR)this);
+ m_bReadOnly = Contact::IsReadonly(m_hContact);
+ if (m_bReadOnly)
+ m_message.Hide();
+
auto *pDlg = (CMsgDialog *)this;
if (auto *pLogWindowClass = Srmm_GetWindowClass(pDlg)) {
m_pLog = pLogWindowClass->pfnBuilder(*pDlg);