From 346d6c8bba413fa13f31f8acfd808c23a4bbccae Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 27 Jul 2015 13:48:14 +0000 Subject: SkypeWeb: More fixes & optimizations git-svn-id: http://svn.miranda-ng.org/main/trunk@14738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_history_sync.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 1016bd3e1c..06fe888e0d 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -51,11 +51,11 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) std::string conversationLink = message["conversationLink"].as_string(); int emoteOffset = message["skypeemoteoffset"].as_int(); time_t timestamp = IsoToUnixTime(message["composetime"].as_string().c_str()); - CMStringA skypename(ContactUrlToName(from.c_str())); + CMStringA skypename(UrlToSkypename(from.c_str())); bool isEdited = message["skypeeditedid"]; - MCONTACT hContact = FindContact(ContactUrlToName(conversationLink.c_str())); + MCONTACT hContact = FindContact(UrlToSkypename(conversationLink.c_str())); if (timestamp > db_get_dw(hContact, m_szModuleName, "LastMsgTime", 0)) db_set_dw(hContact, m_szModuleName, "LastMsgTime", (DWORD)timestamp); @@ -100,7 +100,7 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) } else if (conversationLink.find("/19:") != -1) { - CMStringA chatname(ChatUrlToName(conversationLink.c_str())); + CMStringA chatname(UrlToSkypename(conversationLink.c_str())); if (!mir_strcmpi(messageType.c_str(), "Text") || !mir_strcmpi(messageType.c_str(), "RichText")) AddMessageToChat(_A2T(chatname), _A2T(skypename), content.c_str(), emoteOffset != NULL, emoteOffset, timestamp, true); } @@ -143,7 +143,7 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) if (conversationLink.find("/8:") != -1) { - CMStringA skypename(ContactUrlToName(conversationLink.c_str())); + CMStringA skypename(UrlToSkypename(conversationLink.c_str())); MCONTACT hContact = FindContact(skypename); if (hContact == NULL) continue; -- cgit v1.2.3