Skip to content
Browse files

iq IDs are now returned in roster plugin

  • Loading branch information...
1 parent 403bc73 commit 393f1b55156fe6595664264a5c2876338cd9fc56 @Gordin Gordin committed Feb 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 roster/strophe.roster.js
View
4 roster/strophe.roster.js
@@ -129,7 +129,7 @@ Strophe.addConnectionPlugin('roster',
this.items = items || [];
}
var iq = $iq({type: 'get', 'id' : this._connection.getUniqueId('roster')}).c('query', attrs);
- this._connection.sendIQ(iq,
+ return this._connection.sendIQ(iq,
this._onReceiveRosterSuccess.bind(this, userCallback),
this._onReceiveRosterError.bind(this, userCallback));
},
@@ -277,7 +277,7 @@ Strophe.addConnectionPlugin('roster',
{
iq.c('group').t(newGroups[i]).up();
}
- this._connection.sendIQ(iq, call_back, call_back);
+ return this._connection.sendIQ(iq, call_back, call_back);
},
/** Function: remove
* Remove roster item

0 comments on commit 393f1b5

Please sign in to comment.
Something went wrong with that request. Please try again.