File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -736,12 +736,11 @@ ChatProxy.prototype = {
736
736
self . _enableCarbons ( ) ;
737
737
738
738
if ( typeof callback === 'function' ) {
739
- // get the roster and save
740
739
self . roster . get ( function ( contacts ) {
741
740
self . roster . contacts = contacts ;
742
741
// send first presence if user is online
743
742
self . connection . send ( $pres ( ) ) ;
744
- // connected and return roster as result
743
+
745
744
callback ( null , self . roster . contacts ) ;
746
745
} ) ;
747
746
} else {
@@ -822,13 +821,12 @@ ChatProxy.prototype = {
822
821
823
822
if ( typeof callback === 'function' ) {
824
823
var presence = chatUtils . createStanza ( XMPP . Stanza , null , 'presence' ) ;
825
-
826
- // get the roster and save
824
+
827
825
self . roster . get ( function ( contacts ) {
828
826
self . roster . contacts = contacts ;
829
- // send first presence if user is online,
827
+ // send first presence if user is online
830
828
self . Client . send ( presence ) ;
831
- // connected and return roster as result
829
+
832
830
callback ( null , self . roster . contacts ) ;
833
831
} ) ;
834
832
}
You can’t perform that action at this time.
0 commit comments