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 }
|
||||
//@ts-expect-error
|
||||
delete chat.messages
|
||||
if(c.messages?.[0]) {
|
||||
messages.push(c.messages![0].message!)
|
||||
for(const msg of c.messages || []) {
|
||||
if(msg.message) {
|
||||
messages.push(msg.message)
|
||||
}
|
||||
}
|
||||
return chat
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user