Skip to content

Commit

Permalink
fix: hotfix the 'openChatWindow' function (#3291)
Browse files Browse the repository at this point in the history
Co-authored-by: Beny Filho <168232825+BenyFilho@users.noreply.github.com>
  • Loading branch information
alechkos and BenyFilho authored Sep 25, 2024
1 parent e470c82 commit b4c5761
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/InterfaceController.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class InterfaceController {
*/
async openChatWindow(chatId) {
await this.pupPage.evaluate(async chatId => {
let chatWid = window.Store.WidFactory.createWid(chatId);
let chat = await window.Store.Chat.find(chatWid);
await window.Store.Cmd.openChatAt(chat);
const chatWid = window.Store.WidFactory.createWid(chatId);
const chat = window.Store.Chat.get(chat) || await window.Store.Chat.find(chatWid);
await window.Store.Cmd.openChatBottom(chat);
}, chatId);
}

Expand Down

0 comments on commit b4c5761

Please sign in to comment.