Skip to content

Commit 1f635ca

Browse files
author
Igor Khomenko
committed
added QB.chat.helpers.getRoomJidFromDialogId
1 parent f820bae commit 1f635ca

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

js/modules/qbChat.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,10 @@ Helpers.prototype = {
13611361
return jid.split('@')[0].split('_')[1];
13621362
},
13631363

1364+
getRoomJidFromDialogId: function(dialogId) {
1365+
return config.creds.appId + '_' + dialogId + '@' + config.endpoints.muc;
1366+
},
1367+
13641368
getRoomJid: function(jid) {
13651369
if(!isBrowser) throw unsupported;
13661370
return jid + '/' + this.getIdFromNode(connection.jid);

0 commit comments

Comments
 (0)