mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
Add command help for omemo qrcode
This commit is contained in:
parent
d64cb38240
commit
42fb8f86d9
@ -2328,7 +2328,8 @@ static struct cmd_t command_defs[] = {
|
|||||||
"/omemo char <char>",
|
"/omemo char <char>",
|
||||||
"/omemo trustmode manual|firstusage|blind",
|
"/omemo trustmode manual|firstusage|blind",
|
||||||
"/omemo policy manual|automatic|always",
|
"/omemo policy manual|automatic|always",
|
||||||
"/omemo clear_device_list")
|
"/omemo clear_device_list",
|
||||||
|
"/omemo qrcode")
|
||||||
CMD_DESC(
|
CMD_DESC(
|
||||||
"OMEMO commands to manage keys, and perform encryption during chat sessions.")
|
"OMEMO commands to manage keys, and perform encryption during chat sessions.")
|
||||||
CMD_ARGS(
|
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 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 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." },
|
{ "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(
|
CMD_EXAMPLES(
|
||||||
"/omemo gen",
|
"/omemo gen",
|
||||||
"/omemo start odin@valhalla.edda",
|
"/omemo start odin@valhalla.edda",
|
||||||
|
@ -904,6 +904,8 @@ cons_show_omemo_qrcode(const char* const text)
|
|||||||
win_println(console, THEME_DEFAULT, "", "%s", tmp);
|
win_println(console, THEME_DEFAULT, "", "%s", tmp);
|
||||||
|
|
||||||
QRcode_free(qrcode);
|
QRcode_free(qrcode);
|
||||||
|
#else
|
||||||
|
cons_show("This version of Profanity has not been built with libqrencode");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user