mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
include all messages in initial bootstrap
This commit is contained in:
@@ -228,8 +228,10 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
|||||||
const chat: Chat = { ...c }
|
const chat: Chat = { ...c }
|
||||||
//@ts-expect-error
|
//@ts-expect-error
|
||||||
delete chat.messages
|
delete chat.messages
|
||||||
if(c.messages?.[0]) {
|
for(const msg of c.messages || []) {
|
||||||
messages.push(c.messages![0].message!)
|
if(msg.message) {
|
||||||
|
messages.push(msg.message)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return chat
|
return chat
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user