mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add last message in chat.update event if is real message (#1203)
This commit is contained in:
@@ -169,6 +169,7 @@ const processMessage = async(
|
|||||||
const isRealMsg = isRealMessage(message, meId)
|
const isRealMsg = isRealMessage(message, meId)
|
||||||
|
|
||||||
if(isRealMsg) {
|
if(isRealMsg) {
|
||||||
|
chat.messages = [{ message }]
|
||||||
chat.conversationTimestamp = toNumber(message.messageTimestamp)
|
chat.conversationTimestamp = toNumber(message.messageTimestamp)
|
||||||
// only increment unread count if not CIPHERTEXT and from another person
|
// only increment unread count if not CIPHERTEXT and from another person
|
||||||
if(shouldIncrementChatUnread(message)) {
|
if(shouldIncrementChatUnread(message)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user