From e2c0026763f6255c903095c02c484d763b8de65d Mon Sep 17 00:00:00 2001 From: Edgard Messias Date: Tue, 15 Dec 2020 13:58:21 -0300 Subject: [PATCH] fix: Fixed sendSeen call --- src/lib/wapi/functions/send-seen.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/wapi/functions/send-seen.js b/src/lib/wapi/functions/send-seen.js index 4802f71fb..69e3c151a 100644 --- a/src/lib/wapi/functions/send-seen.js +++ b/src/lib/wapi/functions/send-seen.js @@ -57,9 +57,9 @@ export async function sendSeen(id, done) { var chat = window.WAPI.getChat(id); if (chat !== undefined) { await Store.ReadSeen.sendSeen(chat, false); - done(true); + done && done(true); return true; } - done(false); + done && done(false); return false; }