diff --git a/src/util/InterfaceController.js b/src/util/InterfaceController.js index ef8cb7d..3c0200c 100644 --- a/src/util/InterfaceController.js +++ b/src/util/InterfaceController.js @@ -15,7 +15,8 @@ class InterfaceController { */ async openChatWindow(chatId) { await this.pupPage.evaluate(async chatId => { - let chat = await window.Store.Chat.get(chatId); + let chatWid = window.Store.WidFactory.createWid(chatId); + let chat = await window.Store.Chat.find(chatWid); await window.Store.Cmd.openChatAt(chat); }, chatId); } @@ -75,4 +76,4 @@ class InterfaceController { } -module.exports = InterfaceController; \ No newline at end of file +module.exports = InterfaceController;