plugin_e2ee: fingerprint command defaults to ownjid in MucTab

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-07-03 12:49:06 +02:00
parent 0391057163
commit 98ac3a0aaf
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -308,6 +308,8 @@ class E2EEPlugin(BasePlugin):
tab = self.api.current_tab()
if not args and isinstance(tab, self.supported_tab_types):
jid = tab.jid
if isinstance(tab, MucTab):
jid = self.core.xmpp.boundjid.bare
elif not args and isinstance(tab, RosterInfoTab):
# Allow running the command without arguments in roster tab
jid = self.core.xmpp.boundjid.bare