fix: tsc issue

This commit is contained in:
Adhiraj Singh
2022-10-24 11:38:57 +05:30
parent b9d13a57d8
commit 070e24e3fd

View File

@@ -499,7 +499,7 @@ function append<E extends BufferableEvent>(
const chatId = message.key.remoteJid!
const chat = data.chatUpdates[chatId] || data.chatUpserts[chatId]
if(
isRealMessage(message)
isRealMessage(message, '')
&& shouldIncrementChatUnread(message)
&& typeof chat?.unreadCount === 'number'
&& chat.unreadCount > 0