[openpgp] Adapt to nbxmpp changes

This commit is contained in:
Philipp Hörist
2019-12-06 21:09:07 +01:00
parent 04d4f1273b
commit 346f9ac468

View File

@@ -135,9 +135,10 @@ class OpenPGP(BaseModule):
@event_node(nbxmpp.NS_OPENPGP_PK)
def _keylist_notification_received(self, _con, _stanza, properties):
keylist = []
if not properties.pubsub_event.empty:
keylist = properties.pubsub_event.data
if properties.pubsub_event.retracted:
return
keylist = properties.pubsub_event.data or []
self._process_keylist(keylist, properties.jid)