mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 02:56:21 +00:00
feat: Add OMEMO trust status indicators to the titlebar
Previously the titlebar only showed [OMEMO], regardless of whether the active session contained untrusted devices. This forced users to manually run /omemo fingerprint to check the security status of their conversation, making it difficult to know at a glance if a session was truly secure. New function `omemo_is_jid_trusted()` to check if all active devices for a JID are trusted. Update chat and MUC titlebar to display [trusted] or [untrusted] tags when an OMEMO session is active. Not sure if MUC makes sense here?
This commit is contained in:
@@ -2332,13 +2332,18 @@ static const struct cmd_t command_defs[] = {
|
||||
"/omemo clear_device_list",
|
||||
"/omemo qrcode")
|
||||
CMD_DESC(
|
||||
"OMEMO commands to manage keys, and perform encryption during chat sessions.")
|
||||
"OMEMO commands to manage keys, and perform encryption during chat sessions.\n"
|
||||
"The title bar will show the OMEMO session status:\n"
|
||||
"[OMEMO][trusted] - All active devices for the contact are trusted.\n"
|
||||
"[OMEMO][untrusted] - One or more active devices for the contact are untrusted.\n")
|
||||
CMD_ARGS(
|
||||
{ "gen", "Generate OMEMO cryptographic materials for current account." },
|
||||
{ "start [<contact>]", "Start an OMEMO session with contact, or current recipient if omitted." },
|
||||
{ "end", "End the current OMEMO session." },
|
||||
{ "log on|off", "Enable or disable plaintext logging of OMEMO encrypted messages." },
|
||||
{ "log redact", "Log OMEMO encrypted messages, but replace the contents with [redacted]." },
|
||||
{ "trust [<contact>] <fp>", "Trust a fingerprint for a contact, or current recipient if omitted. If all active devices are trusted, the title bar will show [trusted]. Otherwise, it will show [untrusted]." },
|
||||
{ "untrust [<contact>] <fp>","Untrust a fingerprint for a contact, or current recipient if omitted." },
|
||||
{ "fingerprint [<contact>]", "Show contact's fingerprints, or current recipient's if omitted." },
|
||||
{ "char <char>", "Set the character to be displayed next to OMEMO encrypted messages." },
|
||||
{ "trustmode manual", "Set the global OMEMO trust mode to manual, OMEMO keys has to be trusted manually." },
|
||||
|
||||
Reference in New Issue
Block a user