From 64dd5d270e470cbf8ec610ac536e4c06f46b0cb2 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Tue, 11 Aug 2015 10:25:29 +0000 Subject: WhatsApp: fix double sound. git-svn-id: http://svn.miranda-ng.org/main/trunk@14906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/messages.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/WhatsApp') 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()); -- cgit v1.2.3