Skip to content

Commit be68eae

Browse files
authored
Merge pull request #374 from QuickBlox/development
Bug with join into private chat fixed;
2 parents 20d7e66 + 935818c commit be68eae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

samples/chat/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ It allows:
2323

2424
# Documentation
2525

26-
Original sample description & setup guide - [JS Chat Sample](https://quickblox.com/developers/Web_XMPP_Chat_Sample#Guide:_Getting_Started_with_Chat_API)
26+
Original sample description & setup guide - [JS Chat Sample](https://quickblox.com/developers/Web_XMPP_Chat_Sample#Guide:_Getting_Started_with_Chat_API)

samples/chat/js/dialog.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ Dialog.prototype.createDialog = function (params) {
368368
}
369369

370370
(new Promise(function (resolve){
371+
if(createdDialog.type===CONSTANTS.DIALOG_TYPES.CHAT){
372+
resolve();
373+
}
371374
self.joinToDialog(id).then(function(){
372375
if(createdDialog.type === CONSTANTS.DIALOG_TYPES.GROUPCHAT){
373376
messageModule.sendMessage(id, notificationMessage);

0 commit comments

Comments
 (0)