From 4336962bfb77acdebcb167571a8ce9e1d6c26778 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 15 May 2015 11:16:02 +0000 Subject: SkypeWeb: Not add removed contacts to contact list. git-svn-id: http://svn.miranda-ng.org/main/trunk@13602 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_history_sync.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp') diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index f6e6e3dd03..680a4521e0 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -240,7 +240,9 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) if (conversationLink != NULL && strstr(conversationLink, "/8:")) { skypename = ContactUrlToName(conversationLink); - MCONTACT hContact = AddContact(skypename, true); + MCONTACT hContact = FindContact(skypename); + if (hContact == NULL) + continue; if (/*GetLastMessageTime(hContact) < composeTime || */db_get_dw(hContact, m_szModuleName, "LastMsgTime", 0) < composeTime) { -- cgit v1.2.3