From ea1c72e6742777aae4f7cb2602006c0ef8cce1ed Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 1 May 2015 18:24:18 +0000 Subject: SkypeWeb: Small fixes. git-svn-id: http://svn.miranda-ng.org/main/trunk@13343 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_history_sync.cpp | 3 ++- 1 file changed, 2 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 ce6a672766..98b10b9a38 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -52,7 +52,9 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) int emoteOffset = atoi(ptrA(mir_t2a(ptrT(json_as_string(json_get(message, "skypeemoteoffset")))))); time_t timestamp = IsoToUnixTime(composeTime); ptrA skypename(ContactUrlToName(from)); + bool isEdited = (json_get(message, "skypeeditedid") != NULL); + MCONTACT hContact = FindContact(ptrA(ContactUrlToName(conversationLink))); if (conversationLink != NULL && strstr(conversationLink, "/8:")) { @@ -218,7 +220,6 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) char *clientMsgId = mir_t2a(json_as_string(json_get(lastMessage, "clientmessageid"))); char *skypeEditedId = mir_t2a(json_as_string(json_get(lastMessage, "skypeeditedid"))); - bool isEdited = (skypeEditedId != NULL); char *conversationLink = mir_t2a(json_as_string(json_get(lastMessage, "conversationLink"))); time_t composeTime(IsoToUnixTime(ptrT(json_as_string(json_get(lastMessage, "composetime"))))); -- cgit v1.2.3