plugins/upload: use correct tab attribute name

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-03-23 21:46:17 +01:00
parent 3f70986d57
commit 2a9c67501a
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -88,7 +88,7 @@ class Plugin(BasePlugin):
filename, = args filename, = args
filename = expanduser(filename) filename = expanduser(filename)
tab = self.api.current_tab() tab = self.api.current_tab()
encrypted = self.core.xmpp['xep_0454'] and tab.e2e_encrypted is not None encrypted = self.core.xmpp['xep_0454'] and tab.e2e_encryption is not None
asyncio.create_task(self.send_upload(filename, tab, encrypted)) asyncio.create_task(self.send_upload(filename, tab, encrypted))
@staticmethod @staticmethod