decrypt: use correct signature from poezio.E2EEPlugin

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-03-24 16:07:01 +01:00
parent 81ce08d2be
commit 86423b59a7
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -150,7 +150,7 @@ class Plugin(E2EEPlugin):
colored_fp += f'\x19{fg_color}}}{part}{separator}' colored_fp += f'\x19{fg_color}}}{part}{separator}'
return colored_fp return colored_fp
async def decrypt(self, message: Message, jid: Optional[JID], tab: ChatTab) -> None: async def decrypt(self, message: Message, jid: Optional[JID], tab: Optional[ChatTab]) -> None:
if jid is None: if jid is None:
self.display_error('Unable to decrypt the message.') self.display_error('Unable to decrypt the message.')
return None return None