Raise NodeProcessed after processing ROSTERX
This commit is contained in:
parent
a1e1e56dda
commit
0a6b2126b3
|
@ -44,7 +44,8 @@ class RosterItemExchange:
|
||||||
items_list = stanza.getTag(
|
items_list = stanza.getTag(
|
||||||
'x', namespace=nbxmpp.NS_ROSTERX).getChildren()
|
'x', namespace=nbxmpp.NS_ROSTERX).getChildren()
|
||||||
if items_list is None:
|
if items_list is None:
|
||||||
return
|
raise nbxmpp.NodeProcessed
|
||||||
|
|
||||||
action = items_list[0].getAttr('action')
|
action = items_list[0].getAttr('action')
|
||||||
if not action:
|
if not action:
|
||||||
action = 'add'
|
action = 'add'
|
||||||
|
@ -77,7 +78,7 @@ class RosterItemExchange:
|
||||||
exchange_items_list[jid] = [name, groups]
|
exchange_items_list[jid] = [name, groups]
|
||||||
|
|
||||||
if not exchange_items_list:
|
if not exchange_items_list:
|
||||||
return
|
raise nbxmpp.NodeProcessed
|
||||||
|
|
||||||
log.info('Items: %s', exchange_items_list)
|
log.info('Items: %s', exchange_items_list)
|
||||||
|
|
||||||
|
@ -87,7 +88,6 @@ class RosterItemExchange:
|
||||||
exchange_items_list=exchange_items_list,
|
exchange_items_list=exchange_items_list,
|
||||||
action=action))
|
action=action))
|
||||||
|
|
||||||
if stanza.name == 'iq':
|
|
||||||
raise nbxmpp.NodeProcessed
|
raise nbxmpp.NodeProcessed
|
||||||
|
|
||||||
def send_contacts(self, contacts, fjid, type_='message'):
|
def send_contacts(self, contacts, fjid, type_='message'):
|
||||||
|
|
Loading…
Reference in New Issue