Fixed error in client roster handling.
The roster result iq was not being passed to the roster update handler.
This commit is contained in:
parent
8f55704928
commit
04cc48775d
1 changed files with 4 additions and 4 deletions
|
@ -219,8 +219,8 @@ class ClientXMPP(BaseXMPP):
|
||||||
iq['roster']['items'] = {jid: {'name': name,
|
iq['roster']['items'] = {jid: {'name': name,
|
||||||
'subscription': subscription,
|
'subscription': subscription,
|
||||||
'groups': groups}}
|
'groups': groups}}
|
||||||
resp = iq.send()
|
response = iq.send()
|
||||||
return resp['type'] == 'result'
|
return response['type'] == 'result'
|
||||||
|
|
||||||
def del_roster_item(self, jid):
|
def del_roster_item(self, jid):
|
||||||
"""
|
"""
|
||||||
|
@ -235,8 +235,8 @@ class ClientXMPP(BaseXMPP):
|
||||||
def get_roster(self):
|
def get_roster(self):
|
||||||
"""Request the roster from the server."""
|
"""Request the roster from the server."""
|
||||||
iq = self.Iq()._set_stanza_values({'type': 'get'}).enable('roster')
|
iq = self.Iq()._set_stanza_values({'type': 'get'}).enable('roster')
|
||||||
iq.send()
|
response = iq.send()
|
||||||
self._handle_roster(iq, request=True)
|
self._handle_roster(response, request=True)
|
||||||
|
|
||||||
def _handle_stream_features(self, features):
|
def _handle_stream_features(self, features):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue