omemo: use jid property instead of name on chat tab
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
931fc58199
commit
3697e308c2
1 changed files with 2 additions and 2 deletions
|
@ -268,7 +268,7 @@ class E2EEPlugin(BasePlugin):
|
||||||
@command_args_parser.quoted(0, 1)
|
@command_args_parser.quoted(0, 1)
|
||||||
def _command_show_fingerprints(self, args: List[str]) -> None:
|
def _command_show_fingerprints(self, args: List[str]) -> None:
|
||||||
if not args and isinstance(self.api.current_tab(), self.supported_tab_types):
|
if not args and isinstance(self.api.current_tab(), self.supported_tab_types):
|
||||||
jid = self.api.current_tab().name
|
jid = self.api.current_tab().jid
|
||||||
else:
|
else:
|
||||||
jid = args[0]
|
jid = args[0]
|
||||||
self._show_fingerprints(JID(jid))
|
self._show_fingerprints(JID(jid))
|
||||||
|
@ -293,7 +293,7 @@ class E2EEPlugin(BasePlugin):
|
||||||
'Info',
|
'Info',
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
jid = self.api.current_tab().name
|
jid = self.api.current_tab().jid
|
||||||
if not args:
|
if not args:
|
||||||
self.api.information(
|
self.api.information(
|
||||||
'No fingerprint provided to the command..',
|
'No fingerprint provided to the command..',
|
||||||
|
|
Loading…
Reference in a new issue