Populate expect_problems with JID instances instead of bare_jids
This commit is contained in:
parent
89758db2b2
commit
9f1f538d78
1 changed files with 2 additions and 1 deletions
|
@ -595,7 +595,8 @@ class XEP_0384(BasePlugin):
|
||||||
# OMEMO lib to not encrypt to this device
|
# OMEMO lib to not encrypt to this device
|
||||||
if exn.problem == 'undecided':
|
if exn.problem == 'undecided':
|
||||||
raise UndecidedException(exn.bare_jid, exn.device, exn.ik)
|
raise UndecidedException(exn.bare_jid, exn.device, exn.ik)
|
||||||
expect_problems.setdefault(exn.bare_jid, []).append(exn.device)
|
distrusted_jid = JID(exn.bare_jid)
|
||||||
|
expect_problems.setdefault(distrusted_jid, []).append(exn.device)
|
||||||
elif isinstance(exn, omemo.exceptions.NoEligibleDevicesException):
|
elif isinstance(exn, omemo.exceptions.NoEligibleDevicesException):
|
||||||
# This error is returned by the library to specify that
|
# This error is returned by the library to specify that
|
||||||
# encryption is not possible to any device of a user.
|
# encryption is not possible to any device of a user.
|
||||||
|
|
Loading…
Reference in a new issue