From 79d1080c7515ca36601455f5fffcd39f3bd025cf Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 21 Apr 2015 11:33:20 +0000 Subject: SkypeWeb: Messages duplicating fix(?)2. git-svn-id: http://svn.miranda-ng.org/main/trunk@13003 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_messages.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index cbaed0eba3..54349181ec 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -231,8 +231,8 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node) int hMessage = atoi(clientMsgId); ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE)hMessage, 0); debugLogA(__FUNCTION__" timestamp = %d clientmsgid = %s", timestamp, clientMsgId); - if (GetMessageFromDb(hContact, clientMsgId) == NULL) - AddMessageToDb(hContact, timestamp, DBEF_UTF | DBEF_SENT, clientMsgId, message, emoteOffset); + AddMessageToDb(hContact, timestamp, DBEF_UTF | DBEF_SENT, clientMsgId, message, emoteOffset); + return; } debugLogA(__FUNCTION__" timestamp = %d clientmsgid = %s", timestamp, clientMsgId); MEVENT dbevent = GetMessageFromDb(hContact, skypeEditedId); -- cgit v1.2.3