diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-21 10:30:49 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-21 10:30:49 +0000 |
commit | 5af0b0b4849840188d6b366146fa98c7883c714c (patch) | |
tree | 21c2cab356dd9bcce1d2d7dd66548174dfba25cc /protocols | |
parent | eec1a98274a90e402685b0326ca5c46566606f91 (diff) |
SkypeWeb: Messages duplicating fix(?).
git-svn-id: http://svn.miranda-ng.org/main/trunk@13002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index aef8687f78..cbaed0eba3 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -231,7 +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);
- AddMessageToDb(hContact, timestamp, DBEF_UTF | DBEF_SENT, clientMsgId, message, emoteOffset);
+ if (GetMessageFromDb(hContact, clientMsgId) == NULL)
+ AddMessageToDb(hContact, timestamp, DBEF_UTF | DBEF_SENT, clientMsgId, message, emoteOffset);
}
debugLogA(__FUNCTION__" timestamp = %d clientmsgid = %s", timestamp, clientMsgId);
MEVENT dbevent = GetMessageFromDb(hContact, skypeEditedId);
|