summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-12-28 18:47:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-12-28 18:47:10 +0300
commit34ff0a2b21a357f80e798940df9ce887dcf1e185 (patch)
tree6961bb270f859f644ee5deda8a922a57b17717b5
parent8e51f5222c33160dc339e71d621d6ec92f23ad7e (diff)
finally fixes #1683
-rw-r--r--protocols/Icq10/src/proto.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Icq10/src/proto.cpp b/protocols/Icq10/src/proto.cpp
index 05f9b5ce4f..3e41f4e63c 100644
--- a/protocols/Icq10/src/proto.cpp
+++ b/protocols/Icq10/src/proto.cpp
@@ -82,8 +82,11 @@ void CIcqProto::OnShutdown()
void CIcqProto::OnContactDeleted(MCONTACT hContact)
{
+ DWORD dwUin = getDword(hContact, "UIN");
+ m_arCache.remove(FindContactByUIN(dwUin));
+
auto *pReq = new AsyncHttpRequest(CONN_MAIN, REQUEST_GET, ICQ_API_SERVER "/buddylist/removeBuddy");
- pReq << CHAR_PARAM("f", "json") << CHAR_PARAM("aimsid", m_aimsid) << INT_PARAM("buddy", getDword(hContact, "UIN"))
+ pReq << CHAR_PARAM("f", "json") << CHAR_PARAM("aimsid", m_aimsid) << INT_PARAM("buddy", dwUin)
<< CHAR_PARAM("r", pReq->m_reqId) << INT_PARAM("allGroups", 1);
pReq->flags |= NLHRF_NODUMPSEND;
Push(pReq);