mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: msgs not appearing in chat
This commit is contained in:
@@ -51,7 +51,7 @@ export const processHistoryMessage = (item: proto.IHistorySync) => {
|
||||
const message = item.message!
|
||||
messages.push(message)
|
||||
|
||||
if(!chat.messages) {
|
||||
if(!chat.messages?.length) {
|
||||
// keep only the most recent message in the chat array
|
||||
chat.messages = [{ message }]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user