Update Roster stanza to use RosterItem substanzas.

get_roster() now returns the Iq result stanza instead of True (stanzas
also evaluate to True).
This commit is contained in:
Lance Stout
2012-01-12 17:21:43 -08:00
parent c0074f95b1
commit e8b2dd6698
2 changed files with 43 additions and 32 deletions

View File

@@ -244,7 +244,8 @@ class ClientXMPP(BaseXMPP):
response = iq.send(block, timeout, callback)
if block:
return self._handle_roster(response, request=True)
self._handle_roster(response, request=True)
return response
def _handle_connected(self, event=None):
#TODO: Use stream state here
@@ -291,7 +292,6 @@ class ClientXMPP(BaseXMPP):
iq.reply()
iq.enable('roster')
iq.send()
return True
def _handle_session_bind(self, jid):
"""Set the client roster to the JID set by the server.