Always show the chat when calling 'open'
This commit is contained in:
parent
380a60aebd
commit
e2f1c68cff
@ -1413,18 +1413,14 @@
|
|||||||
}
|
}
|
||||||
var _transform = function (jid) {
|
var _transform = function (jid) {
|
||||||
jid = jid.toLowerCase();
|
jid = jid.toLowerCase();
|
||||||
var chatroom = converse.chatboxes.get(jid);
|
return converse.wrappedChatBox(converse.chatboxviews.showChat({
|
||||||
if (!chatroom) {
|
'id': jid,
|
||||||
chatroom = converse.chatboxviews.showChat({
|
'jid': jid,
|
||||||
'id': jid,
|
'name': Strophe.unescapeNode(Strophe.getNodeFromJid(jid)),
|
||||||
'jid': jid,
|
'nick': nick,
|
||||||
'name': Strophe.unescapeNode(Strophe.getNodeFromJid(jid)),
|
'type': 'chatroom',
|
||||||
'nick': nick,
|
'box_id': b64_sha1(jid)
|
||||||
'type': 'chatroom',
|
}));
|
||||||
'box_id': b64_sha1(jid)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return converse.wrappedChatBox(converse.chatboxes.getChatBox(jid, true));
|
|
||||||
};
|
};
|
||||||
if (typeof jids === "undefined") {
|
if (typeof jids === "undefined") {
|
||||||
throw new TypeError('rooms.open: You need to provide at least one JID');
|
throw new TypeError('rooms.open: You need to provide at least one JID');
|
||||||
|
Loading…
Reference in New Issue
Block a user