mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update 7.MessagesExtra.ts
This commit is contained in:
@@ -114,7 +114,7 @@ export class WAConnection extends Base {
|
|||||||
|
|
||||||
const chat = this.chats.get (jid)
|
const chat = this.chats.get (jid)
|
||||||
const hasCursor = cursor?.id && typeof cursor?.fromMe !== 'undefined'
|
const hasCursor = cursor?.id && typeof cursor?.fromMe !== 'undefined'
|
||||||
const cursorValue = hasCursor && chat.messages.get (GET_MESSAGE_ID(cursor))
|
const cursorValue = hasCursor && chat.messages?.get (GET_MESSAGE_ID(cursor))
|
||||||
|
|
||||||
let messages: WAMessage[]
|
let messages: WAMessage[]
|
||||||
if (chat?.messages && mostRecentFirst && (!hasCursor || cursorValue)) {
|
if (chat?.messages && mostRecentFirst && (!hasCursor || cursorValue)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user