From 850611e50084e7d0ec75c8a70c30848c8230c4e3 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Thu, 7 Apr 2022 15:31:35 +0530 Subject: [PATCH] fix: typo in ciphertext check --- src/Utils/process-message.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/process-message.ts b/src/Utils/process-message.ts index ff90644..c26ca6d 100644 --- a/src/Utils/process-message.ts +++ b/src/Utils/process-message.ts @@ -32,7 +32,7 @@ const processMessage = async( ) { chat.conversationTimestamp = toNumber(message.messageTimestamp) // only increment unread count if not CIPHERTEXT and from another person - if(!message.key.fromMe && !!message.messageStubType) { + if(!message.key.fromMe && !message.messageStubType) { chat.unreadCount = (chat.unreadCount || 0) + 1 }