1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Add command help for omemo qrcode

This commit is contained in:
Michael Vetter 2022-05-29 17:51:33 +02:00
parent d64cb38240
commit 42fb8f86d9
2 changed files with 6 additions and 2 deletions

View File

@ -2328,7 +2328,8 @@ static struct cmd_t command_defs[] = {
"/omemo char <char>",
"/omemo trustmode manual|firstusage|blind",
"/omemo policy manual|automatic|always",
"/omemo clear_device_list")
"/omemo clear_device_list",
"/omemo qrcode")
CMD_DESC(
"OMEMO commands to manage keys, and perform encryption during chat sessions.")
CMD_ARGS(
@ -2345,7 +2346,8 @@ static struct cmd_t command_defs[] = {
{ "policy manual", "Set the global OMEMO policy to manual, OMEMO sessions must be started manually." },
{ "policy automatic", "Set the global OMEMO policy to opportunistic, an OMEMO session will be attempted upon starting a conversation." },
{ "policy always", "Set the global OMEMO policy to always, an error will be displayed if an OMEMO session cannot be initiated upon starting a conversation." },
{ "clear_device_list", "Clear your own device list on server side. Each client will reannounce itself when connected back."})
{ "clear_device_list", "Clear your own device list on server side. Each client will reannounce itself when connected back."},
{ "qrcode", "Display QR code of your OMEMO fingerprint"})
CMD_EXAMPLES(
"/omemo gen",
"/omemo start odin@valhalla.edda",

View File

@ -904,6 +904,8 @@ cons_show_omemo_qrcode(const char* const text)
win_println(console, THEME_DEFAULT, "", "%s", tmp);
QRcode_free(qrcode);
#else
cons_show("This version of Profanity has not been built with libqrencode");
#endif
}