[omemo] Adapt to nbxmpp changes

This commit is contained in:
Philipp Hörist
2019-12-06 21:06:38 +01:00
parent b6b85fc929
commit 1c59c49950

View File

@@ -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)