fix: typo in ciphertext check

This commit is contained in:
Adhiraj Singh
2022-04-07 15:31:35 +05:30
parent 39eb0d1427
commit 850611e500

View File

@@ -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
}