plugin_e2ee: rework fingerprint display slightly
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
433d5e6f76
commit
3c7fb0b792
1 changed files with 2 additions and 2 deletions
|
@ -284,13 +284,13 @@ class E2EEPlugin(BasePlugin):
|
||||||
if len(fprs) == 1:
|
if len(fprs) == 1:
|
||||||
fingerprint = self.format_fingerprint(fprs[0], theme)
|
fingerprint = self.format_fingerprint(fprs[0], theme)
|
||||||
self.api.information(
|
self.api.information(
|
||||||
f'Fingerprint for {jid}: {fingerprint}',
|
f'Fingerprint for {jid}:\n{fingerprint}',
|
||||||
'Info',
|
'Info',
|
||||||
)
|
)
|
||||||
elif fprs:
|
elif fprs:
|
||||||
fmt_fprs = map(lambda fp: self.format_fingerprint(fp, theme), fprs)
|
fmt_fprs = map(lambda fp: self.format_fingerprint(fp, theme), fprs)
|
||||||
self.api.information(
|
self.api.information(
|
||||||
'Fingerprints for %s:\n\t%s' % (jid, '\n\t'.join(fmt_fprs)),
|
'Fingerprints for %s:\n%s' % (jid, '\n\n'.join(fmt_fprs)),
|
||||||
'Info',
|
'Info',
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue