mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix message prepend event
This commit is contained in:
@@ -239,7 +239,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
case proto.HistorySync.HistorySyncHistorySyncType.RECENT:
|
||||
// push remaining messages
|
||||
for(const conv of item.conversations) {
|
||||
for(const m of (conv.messages || []).slice(1)) {
|
||||
for(const m of (conv.messages || [])) {
|
||||
messages.push(m.message!)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user