parent
a79383ee1e
commit
26fec1630d
1 changed files with 3 additions and 2 deletions
|
@ -149,7 +149,7 @@ class Plugin(E2EEPlugin):
|
||||||
)
|
)
|
||||||
# Heartbeats will return a None body.
|
# Heartbeats will return a None body.
|
||||||
if body is not None:
|
if body is not None:
|
||||||
message['body'] = body.decode('utf-8')
|
body = body.decode('utf-8')
|
||||||
except (MissingOwnKey,):
|
except (MissingOwnKey,):
|
||||||
# The message is missing our own key, it was not encrypted for
|
# The message is missing our own key, it was not encrypted for
|
||||||
# us, and we can't decrypt it.
|
# us, and we can't decrypt it.
|
||||||
|
@ -181,7 +181,8 @@ class Plugin(E2EEPlugin):
|
||||||
self.display_error(f'An error occured while attempting decryption.\n{exn}')
|
self.display_error(f'An error occured while attempting decryption.\n{exn}')
|
||||||
raise
|
raise
|
||||||
|
|
||||||
return None
|
if body is not None:
|
||||||
|
message['body'] = body
|
||||||
|
|
||||||
async def encrypt(self, message: Message, jids: Optional[List[JID]], _tab) -> None:
|
async def encrypt(self, message: Message, jids: Optional[List[JID]], _tab) -> None:
|
||||||
if jids is None:
|
if jids is None:
|
||||||
|
|
Loading…
Reference in a new issue