feat: openChatWindow can open new chats (#592)
Open the chat window even if you never chatted with the chatId Co-authored-by: Pedro S. Lopez <pslamoros@hotmail.com>
This commit is contained in:
parent
6c66ab2bef
commit
64e2cc48fc
1 changed files with 3 additions and 2 deletions
|
|
@ -15,7 +15,8 @@ class InterfaceController {
|
||||||
*/
|
*/
|
||||||
async openChatWindow(chatId) {
|
async openChatWindow(chatId) {
|
||||||
await this.pupPage.evaluate(async 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);
|
await window.Store.Cmd.openChatAt(chat);
|
||||||
}, chatId);
|
}, chatId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue