feat: add last message in chat.update event if is real message (#1203)

This commit is contained in:
Matheus Alves
2025-03-01 13:21:22 -03:00
committed by GitHub
parent 1d88166613
commit ae60f3fe62

View File

@@ -169,6 +169,7 @@ const processMessage = async(
const isRealMsg = isRealMessage(message, meId)
if(isRealMsg) {
chat.messages = [{ message }]
chat.conversationTimestamp = toNumber(message.messageTimestamp)
// only increment unread count if not CIPHERTEXT and from another person
if(shouldIncrementChatUnread(message)) {