summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-16 17:26:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-16 17:26:37 +0300
commit74b2537f5727016526a51decb3283bfc65fea835 (patch)
treef55af3cf2cbff2e2c7332f7350bcec8b307f7689
parentc4eee43d0cabf562c977e43753b8c2595c4aebe9 (diff)
Jabber: if we forcibly remove a contact, we need to remove it from LIST_ROSTER too
-rw-r--r--protocols/JabberG/src/jabber_events.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_events.cpp b/protocols/JabberG/src/jabber_events.cpp
index 866e09447d..ea3d7ab58d 100644
--- a/protocols/JabberG/src/jabber_events.cpp
+++ b/protocols/JabberG/src/jabber_events.cpp
@@ -50,8 +50,10 @@ int CJabberProto::OnContactDeleted(WPARAM hContact, LPARAM)
}
// Remove from roster, server also handles the presence unsubscription process.
- m_ThreadInfo->send(XmlNodeIq(L"set", SerialNext()) << XQUERY(JABBER_FEAT_IQ_ROSTER)
- << XCHILD(L"item") << XATTR(L"jid", jid) << XATTR(L"subscription", L"remove"));
+ m_ThreadInfo->send(XmlNodeIq(L"set", SerialNext())
+ << XQUERY(JABBER_FEAT_IQ_ROSTER) << XCHILD(L"item") << XATTR(L"jid", jid) << XATTR(L"subscription", L"remove"));
+
+ ListRemove(LIST_ROSTER, jid);
}
return 0;
}