From 4327a5f6815e64716a4721e9af126e684e3fd451 Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Thu, 6 Nov 2025 16:32:06 -0300 Subject: [PATCH] Fix method openChatWindow (#3936) Co-authored-by: Rajeh Taher --- src/util/InterfaceController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/InterfaceController.js b/src/util/InterfaceController.js index 88505f8..3990bf1 100644 --- a/src/util/InterfaceController.js +++ b/src/util/InterfaceController.js @@ -14,9 +14,9 @@ class InterfaceController { * @param {string} chatId ID of the chat window that will be opened */ async openChatWindow(chatId) { - await this.pupPage.evaluate(async (chatId) => { + return await this.pupPage.evaluate(async (chatId) => { const chat = await window.WWebJS.getChat(chatId, { getAsModel: false }); - await window.Store.Cmd.openChatBottom(chat); + return await window.Store.Cmd.openChatBottom({'chat':chat}); }, chatId); }