Mercurial > libervia-backend
changeset 3952:9badc46c5481
plugin OXPS: fix triggers return values:
rel 381
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 28 Oct 2022 18:47:17 +0200 |
parents | 4b8776eb6826 |
children | 8179cff7ef5c |
files | sat/plugins/plugin_sec_oxps.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_sec_oxps.py Sat Oct 15 20:38:33 2022 +0200 +++ b/sat/plugins/plugin_sec_oxps.py Fri Oct 28 18:47:17 2022 +0200 @@ -694,9 +694,9 @@ items: List[domish.Element], rsm_response: rsm.RSMResponse, extra: Dict[str, Any], - ) -> None: + ) -> bool: if not extra.get(C.KEY_DECRYPT, True): - return + return True if service is None: service = client.jid.userhostJID() shared_secrets = None @@ -719,7 +719,7 @@ log.warning( f"No known shared secret for {node_uri}, can't decrypt" ) - return + return True try: shared_secret = shared_secrets[secret_id] except KeyError: @@ -737,6 +737,7 @@ item.children.clear() item.addChild(decrypted_elt) extra.setdefault("encrypted", {})[item["id"]] = {"type": NS_OXPS} + return True async def _message_received_trigger( self,