File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments