1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge pull request #1838 from H3rnand3zzz/fix/omemo-trust-notification

Improve OMEMO messages
This commit is contained in:
Michael Vetter 2023-04-19 17:53:27 +02:00 committed by GitHub
commit f4d418a95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8916,8 +8916,8 @@ cmd_omemo_fingerprint(ProfWin* window, const char* const command, gchar** args)
jid_destroy(jid);
g_list_free(fingerprints);
win_println(window, THEME_DEFAULT, "-", "You can trust it with '/omemo trust <fingerprint>'");
win_println(window, THEME_DEFAULT, "-", "You can untrust it with '/omemo untrust <fingerprint>'");
win_println(window, THEME_DEFAULT, "-", "You can trust it with '/omemo trust [<contact>] <fingerprint>'");
win_println(window, THEME_DEFAULT, "-", "You can untrust it with '/omemo untrust [<contact>] <fingerprint>'");
return TRUE;
#else
@ -8953,7 +8953,7 @@ cmd_omemo_trust(ProfWin* window, const char* const command, gchar** args)
fingerprint = args[1];
if (window->type != WIN_CHAT) {
win_println(window, THEME_DEFAULT, "-", "You must be in a regular chat window to trust a device without providing the contact.");
win_println(window, THEME_DEFAULT, "-", "You must be in a regular chat window to trust a device without providing the contact. To trust your own JID, use /omemo trust %s %s", connection_get_barejid(), fingerprint);
return TRUE;
}