Prevent corrupting roster_update event with iq result.

This commit is contained in:
Lance Stout 2012-04-25 11:03:33 -07:00
parent 0cc14cee4d
commit 4d89d26a1c

View file

@ -277,9 +277,11 @@ class ClientXMPP(BaseXMPP):
self.event("roster_update", iq)
if iq['type'] == 'set':
iq.reply()
iq.enable('roster')
iq.send()
resp = self.Iq(stype='result',
sto=iq['from'],
sid=iq['id'])
resp.enable('roster')
resp.send()
def _handle_session_bind(self, jid):
"""Set the client roster to the JID set by the server.