Fix method openChatWindow (#3936)

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
BenyFilho 2025-11-06 16:32:06 -03:00 • committed by GitHub
commit 4327a5f681
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,9 +14,9 @@ class InterfaceController {
* @param {string} chatId ID of the chat window that will be opened * @param {string} chatId ID of the chat window that will be opened
*/ */
async openChatWindow(chatId) { 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 }); const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
await window.Store.Cmd.openChatBottom(chat); return await window.Store.Cmd.openChatBottom({'chat':chat});
}, chatId); }, chatId);
} }