Fix method openChatWindow (#3936)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
parent
28a2d3630c
commit
4327a5f681
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue