diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-11 10:25:29 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-11 10:25:29 +0000 |
commit | 64dd5d270e470cbf8ec610ac536e4c06f46b0cb2 (patch) | |
tree | 9de9bc98d600abc1d808be0c4c493ffbc6854912 /protocols | |
parent | 43fc7b251649ff90ff72994c097f8b1f7b8f0b48 (diff) |
WhatsApp: fix double sound.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/WhatsApp/src/messages.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/messages.cpp b/protocols/WhatsApp/src/messages.cpp index 837b13ef01..c27d0e74fe 100644 --- a/protocols/WhatsApp/src/messages.cpp +++ b/protocols/WhatsApp/src/messages.cpp @@ -125,7 +125,9 @@ void WhatsAppProto::onMessageStatusUpdate(const FMessage &fmsg) return;
int msgId = atoi(fmsg.key.id.substr(delim+1).c_str());
- ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE)msgId, 0);
+
+ if (fmsg.status == FMessage::STATUS_RECEIVED_BY_SERVER)
+ ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE)msgId, 0);
time_t ts = atol(fmsg.key.id.substr(0, delim).c_str());
|