Add OMEMO in prefs command
This commit is contained in:
@@ -244,6 +244,7 @@ cmd_ac_init(void)
|
||||
autocomplete_add(prefs_ac, "presence");
|
||||
autocomplete_add(prefs_ac, "otr");
|
||||
autocomplete_add(prefs_ac, "pgp");
|
||||
autocomplete_add(prefs_ac, "omemo");
|
||||
|
||||
notify_ac = autocomplete_new();
|
||||
autocomplete_add(notify_ac, "chat");
|
||||
|
||||
@@ -2134,7 +2134,7 @@ static struct cmd_t command_defs[] =
|
||||
CMD_MAINFUNC(cmd_prefs)
|
||||
CMD_NOTAGS
|
||||
CMD_SYN(
|
||||
"/prefs [ui|desktop|chat|log|conn|presence|otr|pgp]")
|
||||
"/prefs [ui|desktop|chat|log|conn|presence|otr|pgp|omemo]")
|
||||
CMD_DESC(
|
||||
"Show preferences for different areas of functionality. "
|
||||
"Passing no arguments shows all preferences.")
|
||||
@@ -2146,7 +2146,8 @@ static struct cmd_t command_defs[] =
|
||||
{ "conn", "Connection handling preferences." },
|
||||
{ "presence", "Chat presence preferences." },
|
||||
{ "otr", "Off The Record preferences." },
|
||||
{ "pgp", "OpenPGP preferences." })
|
||||
{ "pgp", "OpenPGP preferences." },
|
||||
{ "omemo", "OMEMO preferences." })
|
||||
CMD_NOEXAMPLES
|
||||
},
|
||||
|
||||
|
||||
@@ -1679,6 +1679,10 @@ cmd_prefs(ProfWin *window, const char *const command, gchar **args)
|
||||
cons_show("");
|
||||
cons_show_pgp_prefs();
|
||||
cons_show("");
|
||||
} else if (strcmp(args[0], "omemo") == 0) {
|
||||
cons_show("");
|
||||
cons_show_omemo_prefs();
|
||||
cons_show("");
|
||||
} else {
|
||||
cons_bad_cmd_usage(command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user