diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdmsg/src/msgdialog.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 90e59305c2..5cb644f9a4 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -945,20 +945,19 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) break;
case DM_UPDATETITLE:
- if (isChat()) {
- if (lParam == 0 || lParam == (LPARAM)m_hContact)
- UpdateTitle();
- }
- else {
- if (lParam != 0) {
+ if (lParam != 0) {
+ if (isChat()) {
+ if (lParam != m_hContact)
+ break;
+ }
+ else {
bool bIsMe = (lParam == m_hContact) || (m_bIsMeta && db_mc_getMeta(lParam) == m_hContact);
if (!bIsMe)
break;
}
-
- UpdateIcon(wParam);
- UpdateTitle();
}
+ UpdateIcon(wParam);
+ UpdateTitle();
break;
case DM_STATUSICONCHANGE:
|