Skip to content
Snippets Groups Projects
Commit 1c59c499 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Adapt to nbxmpp changes

parent b6b85fc9
No related branches found
No related tags found
No related merge requests found
......@@ -478,9 +478,10 @@ class OMEMO(BaseModule):
@event_node(nbxmpp.NS_OMEMO_TEMP_DL)
def _devicelist_notification_received(self, _con, _stanza, properties):
devicelist = []
if not properties.pubsub_event.empty:
devicelist = properties.pubsub_event.data
if properties.pubsub_event.retracted:
return
devicelist = properties.pubsub_event.data or []
self._process_devicelist_update(str(properties.jid), devicelist)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment