瀏覽代碼

Fix TypeError

The view isn't yet defined when we call `maybeFocus`. This is in any case
not the right place to call something like this.
JC Brand 4 年之前
父節點
當前提交
8e0701f7bb
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/plugins/roomslist/view.js

+ 0 - 1
src/plugins/roomslist/view.js

@@ -89,7 +89,6 @@ export class RoomsList extends ElementView {
             'name': name || Strophe.unescapeNode(Strophe.getNodeFromJid(jid)) || jid
         }
         await api.rooms.open(jid, data, true);
-        api.chatviews.get(jid).maybeFocus();
     }
 
     async closeRoom (ev) { // eslint-disable-line class-methods-use-this