Przeglądaj źródła

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 lat temu
rodzic
commit
8e0701f7bb
1 zmienionych plików z 0 dodań i 1 usunięć
  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