From 3b6b8eabe382b4339c13981153060ae46252dfbb Mon Sep 17 00:00:00 2001 From: Adhiraj Date: Fri, 11 Sep 2020 17:21:44 +0530 Subject: [PATCH] Update 4.Events.ts --- src/WAConnection/4.Events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WAConnection/4.Events.ts b/src/WAConnection/4.Events.ts index afe92e9..62f19f3 100644 --- a/src/WAConnection/4.Events.ts +++ b/src/WAConnection/4.Events.ts @@ -280,7 +280,7 @@ export class WAConnection extends Base { } protected chatUpdatedMessage (messageIDs: string[], status: WA_MESSAGE_STATUS_TYPE, chat: WAChat) { for (let msg of chat.messages) { - if (messageIDs.includes(msg.key.id)) { + if (messageIDs.includes(msg.key.id) && msg.status < status) { if (status <= WA_MESSAGE_STATUS_TYPE.PENDING) msg.status = status else if (isGroupID(chat.jid)) msg.status = status-1 else msg.status = status