diff options
author | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2022-06-17 15:43:54 +0300 |
---|---|---|
committer | MarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com> | 2022-06-17 15:43:54 +0300 |
commit | e4e53d6e01642e0f4ca98d7fb41e20d39d045bfe (patch) | |
tree | 741f5bc49d30c65fd61275452e63763204b7cc6c /src/command | |
parent | 476c73251c2787930f866c76484eb1417a834cea (diff) | |
download | profani-tty-e4e53d6e01642e0f4ca98d7fb41e20d39d045bfe.tar.gz |
Don't forget encryption status for OX and PGP.
Use a pgp.enabled and ox.enabled array the same way that omemo.enabled is used. Fixes https://github.com/profanity-im/profanity/issues/1694 Fixes https://github.com/profanity-im/profanity/issues/733
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_funcs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 57381831..bd025886 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -7475,6 +7475,7 @@ cmd_pgp(ProfWin* window, const char* const command, gchar** args) } chatwin->pgp_send = TRUE; + accounts_add_pgp_state(session_get_account_name(), chatwin->barejid, TRUE); win_println(window, THEME_DEFAULT, "!", "PGP encryption enabled."); return TRUE; } @@ -7498,6 +7499,7 @@ cmd_pgp(ProfWin* window, const char* const command, gchar** args) } chatwin->pgp_send = FALSE; + accounts_add_pgp_state(session_get_account_name(), chatwin->barejid, FALSE); win_println(window, THEME_DEFAULT, "!", "PGP encryption disabled."); return TRUE; } @@ -7673,6 +7675,7 @@ cmd_ox(ProfWin* window, const char* const command, gchar** args) } chatwin->is_ox = TRUE; + accounts_add_ox_state(session_get_account_name(), chatwin->barejid, TRUE); win_println(window, THEME_DEFAULT, "!", "OX encryption enabled."); return TRUE; } else if (g_strcmp0(args[0], "end") == 0) { @@ -7688,6 +7691,7 @@ cmd_ox(ProfWin* window, const char* const command, gchar** args) win_println(window, THEME_DEFAULT, "!", "No OX session has been started."); } else { chatwin->is_ox = FALSE; + accounts_add_ox_state(session_get_account_name(), chatwin->barejid, FALSE); win_println(window, THEME_DEFAULT, "!", "OX encryption disabled."); } return TRUE; |