From 949c63713068c1bd942f0f705041a5a2621e338b Mon Sep 17 00:00:00 2001 From: tuyuribr <45042245+tuyuribr@users.noreply.github.com> Date: Fri, 30 Jan 2026 00:47:44 -0300 Subject: [PATCH] Update Chat.js (#5712) --- src/structures/Chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Chat.js b/src/structures/Chat.js index 5769ff1..93d9a0c 100644 --- a/src/structures/Chat.js +++ b/src/structures/Chat.js @@ -206,7 +206,7 @@ class Chat extends Base { if (searchOptions && searchOptions.limit > 0) { while (msgs.length < searchOptions.limit) { - const loadedMessages = await window.Store.ConversationMsgs.loadEarlierMsgs(chat); + const loadedMessages = await window.Store.ConversationMsgs.loadEarlierMsgs(chat,chat.msgs); if (!loadedMessages || !loadedMessages.length) break; msgs = [...loadedMessages.filter(msgFilter), ...msgs]; }