summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_menu.cpp')
-rw-r--r--protocols/JabberG/src/jabber_menu.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp
index e08731dded..9e7f927559 100644
--- a/protocols/JabberG/src/jabber_menu.cpp
+++ b/protocols/JabberG/src/jabber_menu.cpp
@@ -971,10 +971,8 @@ int CJabberProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam)
if (r && r->m_bMessageSessionActive) {
r->m_bMessageSessionActive = FALSE;
- if (GetResourceCapabilites(jid, TRUE) & JABBER_CAPS_CHATSTATES)
- m_ThreadInfo->send(
- XmlNode(L"message") << XATTR(L"to", jid) << XATTR(L"type", L"chat") << XATTRID(SerialNext())
- << XCHILDNS(L"gone", JABBER_FEAT_CHATSTATES));
+ if (GetResourceCapabilites(jid, true) & JABBER_CAPS_CHATSTATES)
+ m_ThreadInfo->send(XmlNode(L"message") << XATTR(L"to", jid) << XATTR(L"type", L"chat") << XATTRID(SerialNext()) << XCHILDNS(L"gone", JABBER_FEAT_CHATSTATES));
}
}
}