plugins/upload: use correct tab attribute name
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
3f70986d57
commit
2a9c67501a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue