Skip to content

Commit

Permalink
Fix typo + add subcommand 'colors'
Browse files Browse the repository at this point in the history
Subcommand 'colors': not implemented yet.
  • Loading branch information
andreaz98 committed Oct 13, 2024
1 parent 1d0db14 commit ee5dac4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/command/cmd_defs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,8 @@ static const struct cmd_t command_defs[] = {
{ "char", cmd_omemo_char },
{ "policy", cmd_omemo_policy },
{ "clear_device_list", cmd_omemo_clear_device_list },
{ "qrcode", cmd_omemo_qrcode })
{ "qrcode", cmd_omemo_qrcode },
{ "colors", cmd_omemo_colors })
CMD_TAGS(
CMD_TAG_CHAT,
CMD_TAG_UI)
Expand All @@ -2323,7 +2324,7 @@ static const struct cmd_t command_defs[] = {
"/omemo policy manual|automatic|always",
"/omemo clear_device_list",
"/omemo qrcode",
"/omemo color on | off")
"/omemo colors on|off")
CMD_DESC(
"OMEMO commands to manage keys, and perform encryption during chat sessions.")
CMD_ARGS(
Expand All @@ -2342,7 +2343,7 @@ static const struct cmd_t command_defs[] = {
{ "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."},
{ "qrcode", "Display QR code of your OMEMO fingerprint"},
{ "color on|off", "Enable or disable coloring of OMEMO messages. Default: off." })
{ "colors on|off", "Enable or disable coloring of OMEMO messages. Default: off." })
CMD_EXAMPLES(
"/omemo gen",
"/omemo start [email protected]",
Expand Down
1 change: 1 addition & 0 deletions src/command/cmd_funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ gboolean cmd_omemo_trust_mode(ProfWin* window, const char* const command, gchar*
gboolean cmd_omemo_policy(ProfWin* window, const char* const command, gchar** args);
gboolean cmd_omemo_clear_device_list(ProfWin* window, const char* const command, gchar** args);
gboolean cmd_omemo_qrcode(ProfWin* window, const char* const command, gchar** args);
gboolean cmd_omemo_colors(ProfWin* window, const char* const command, gchar** args);

gboolean cmd_save(ProfWin* window, const char* const command, gchar** args);
gboolean cmd_reload(ProfWin* window, const char* const command, gchar** args);
Expand Down

0 comments on commit ee5dac4

Please sign in to comment.