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 chatId = message.key.remoteJid!
const chat = data.chatUpdates[chatId] || data.chatUpserts[chatId] const chat = data.chatUpdates[chatId] || data.chatUpserts[chatId]
if( if(
isRealMessage(message) isRealMessage(message, '')
&& shouldIncrementChatUnread(message) && shouldIncrementChatUnread(message)
&& typeof chat?.unreadCount === 'number' && typeof chat?.unreadCount === 'number'
&& chat.unreadCount > 0 && chat.unreadCount > 0