Browse Source

We no longer need to force the user to provide a JID

when calling `converse.rooms.open`.
JC Brand 9 years ago
parent
commit
8a42e241b7
1 changed files with 0 additions and 6 deletions
  1. 0 6
      src/converse-muc.js

+ 0 - 6
src/converse-muc.js

@@ -1535,12 +1535,6 @@
                     },
                     'open': function (jids, nick) {
                         var fetcher = converse.chatboxviews.showChat.bind(converse.chatboxviews);
-                        if (!nick) {
-                            nick = Strophe.getNodeFromJid(converse.bare_jid);
-                        }
-                        if (typeof nick !== "string") {
-                            throw new TypeError('rooms.open: invalid nick, must be string');
-                        }
                         if (typeof jids === "undefined") {
                             throw new TypeError('rooms.open: You need to provide at least one JID');
                         } else if (typeof jids === "string") {