Skip to content

Commit 33991e1

Browse files
committed
cleanup
1 parent cd33c82 commit 33991e1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/modules/chat/qbChat.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,11 @@ ChatProxy.prototype = {
736736
self._enableCarbons();
737737

738738
if (typeof callback === 'function') {
739-
// get the roster and save
740739
self.roster.get(function(contacts) {
741740
self.roster.contacts = contacts;
742741
// send first presence if user is online
743742
self.connection.send($pres());
744-
// connected and return roster as result
743+
745744
callback(null, self.roster.contacts);
746745
});
747746
} else {
@@ -822,13 +821,12 @@ ChatProxy.prototype = {
822821

823822
if (typeof callback === 'function') {
824823
var presence = chatUtils.createStanza(XMPP.Stanza, null, 'presence');
825-
826-
// get the roster and save
824+
827825
self.roster.get(function(contacts) {
828826
self.roster.contacts = contacts;
829-
// send first presence if user is online,
827+
// send first presence if user is online
830828
self.Client.send(presence);
831-
// connected and return roster as result
829+
832830
callback(null, self.roster.contacts);
833831
});
834832
}

0 commit comments

Comments
 (0)