xep_0384: republish our bundle after decryption if necessary
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
4b565c0f7b
commit
a8fb31a4b1
1 changed files with 2 additions and 0 deletions
|
@ -314,6 +314,8 @@ class XEP_0384(BasePlugin):
|
|||
# TODO: get ahold of bare_jid and device_id to pass in the
|
||||
# exception.
|
||||
raise NoAvailableSession
|
||||
finally:
|
||||
asyncio.ensure_future(self._publish_bundle())
|
||||
|
||||
def _fetching_bundle(self, jid: str, exn: Exception, key: str, _val: Any) -> bool:
|
||||
return isinstance(exn, omemo.exceptions.MissingBundleException) and key == jid
|
||||
|
|
Loading…
Reference in a new issue