From 8a42e241b7c35bdae9b553aad303533bd51ca35d Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 26 Jul 2016 07:27:28 +0000 Subject: [PATCH] We no longer need to force the user to provide a JID when calling `converse.rooms.open`. --- src/converse-muc.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/converse-muc.js b/src/converse-muc.js index fbe58710b..64735d9ec 100755 --- a/src/converse-muc.js +++ b/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") {