[omemo] Adapt to nbxmpp changes
This commit is contained in:
@@ -478,9 +478,10 @@ class OMEMO(BaseModule):
|
|||||||
|
|
||||||
@event_node(nbxmpp.NS_OMEMO_TEMP_DL)
|
@event_node(nbxmpp.NS_OMEMO_TEMP_DL)
|
||||||
def _devicelist_notification_received(self, _con, _stanza, properties):
|
def _devicelist_notification_received(self, _con, _stanza, properties):
|
||||||
devicelist = []
|
if properties.pubsub_event.retracted:
|
||||||
if not properties.pubsub_event.empty:
|
return
|
||||||
devicelist = properties.pubsub_event.data
|
|
||||||
|
devicelist = properties.pubsub_event.data or []
|
||||||
|
|
||||||
self._process_devicelist_update(str(properties.jid), devicelist)
|
self._process_devicelist_update(str(properties.jid), devicelist)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user