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:
@@ -108,7 +108,7 @@ export class WAConnection extends Base {
|
||||
const cursorValue = hasCursor && chat.messages.get (GET_MESSAGE_ID(cursor))
|
||||
|
||||
let messages: WAMessage[]
|
||||
if (chat && mostRecentFirst && (!hasCursor || cursorValue)) {
|
||||
if (chat?.messages && mostRecentFirst && (!hasCursor || cursorValue)) {
|
||||
messages = chat.messages.paginatedByValue (cursorValue, count, null, 'before')
|
||||
|
||||
const diff = count - messages.length
|
||||
|
||||
Reference in New Issue
Block a user