From 030a5346376e33b73141978ca82941820c718104 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Tue, 29 Mar 2022 18:25:17 +0530 Subject: [PATCH] fix: remove redundant chat updates --- 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 95afe71..cfc1ec7 100644 --- a/src/Utils/process-message.ts +++ b/src/Utils/process-message.ts @@ -157,7 +157,7 @@ const processMessage = async( } } - if(Object.keys(chat).length) { + if(Object.keys(chat).length > 1) { map['chats.update'] = [chat] }