Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
8e0701f7bb
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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