Add OMEMO policy
There is 3 policy: - manual: OMEMO session are only started manually - automatic: OMEMO session are only started if they have been started manually before - always: OMEMO session are always started unless they have been ended manually before Closes #1040 and fixes #1052
This commit is contained in:
@@ -2004,6 +2004,10 @@ cons_show_omemo_prefs(void)
|
||||
cons_show("OMEMO preferences:");
|
||||
cons_show("");
|
||||
|
||||
char *policy_value = prefs_get_string(PREF_OMEMO_POLICY);
|
||||
cons_show("OMEMO policy (/omemo policy) : %s", policy_value);
|
||||
prefs_free_string(policy_value);
|
||||
|
||||
char *log_value = prefs_get_string(PREF_OMEMO_LOG);
|
||||
if (strcmp(log_value, "on") == 0) {
|
||||
cons_show("OMEMO logging (/omemo log) : ON");
|
||||
|
||||
Reference in New Issue
Block a user