Raise NodeProcessed after processing ROSTERX

This commit is contained in:
Philipp Hörist 2018-07-05 23:55:09 +02:00
parent a1e1e56dda
commit 0a6b2126b3
1 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,8 @@ class RosterItemExchange:
items_list = stanza.getTag(
'x', namespace=nbxmpp.NS_ROSTERX).getChildren()
if items_list is None:
return
raise nbxmpp.NodeProcessed
action = items_list[0].getAttr('action')
if not action:
action = 'add'
@ -77,7 +78,7 @@ class RosterItemExchange:
exchange_items_list[jid] = [name, groups]
if not exchange_items_list:
return
raise nbxmpp.NodeProcessed
log.info('Items: %s', exchange_items_list)
@ -87,8 +88,7 @@ class RosterItemExchange:
exchange_items_list=exchange_items_list,
action=action))
if stanza.name == 'iq':
raise nbxmpp.NodeProcessed
raise nbxmpp.NodeProcessed
def send_contacts(self, contacts, fjid, type_='message'):
if not app.account_is_connected(self._account):