[pgp] Fix various type errors

This commit is contained in:
Philipp Hörist
2026-01-02 20:28:00 +01:00
parent e6ea3f402f
commit 17e071d9d0
2 changed files with 12 additions and 5 deletions

View File

@@ -129,6 +129,7 @@ class PGPPlugin(GajimPlugin):
def _on_encryption_dialog(self, chat_control: ChatControl):
account = chat_control.account
assert chat_control.contact is not None
jid = chat_control.contact.jid
transient = app.window
KeyDialog(self, account, jid, transient)
@@ -162,6 +163,7 @@ class PGPPlugin(GajimPlugin):
def _before_sendmessage(self, chat_control: ChatControl) -> None:
account = chat_control.account
assert chat_control.contact is not None
jid = str(chat_control.contact.jid)
pgp = self.get_pgp_module(account)