Commit 1c0b571d authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Adapt to nbxmpp changes

parent 266aba14
......@@ -22,7 +22,7 @@ from pathlib import Path
from nbxmpp.namespaces import Namespace
from nbxmpp.protocol import NodeProcessed
from nbxmpp.protocol import JID
from nbxmpp.util import is_error_result
from nbxmpp.errors import StanzaError
from nbxmpp.const import PresenceType
from nbxmpp.const import Affiliation
from nbxmpp.structs import StanzaHandler
......@@ -320,9 +320,12 @@ class OMEMO(BaseModule):
def _on_affiliations_received(self, result, room_jid):
if is_error_result(result):'Affiliation request failed: %s', result)
def _on_affiliations_received(self, task):
room_jid = task.get_user_data()
result = task.finish()
except StanzaError as error:'Affiliation request failed: %s', error)
for user_jid in result.users:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment