xep-0308: create setting to toggle lmc

and print settings if only `/correction` is run.
This commit is contained in:
Michael Vetter
2020-02-10 14:52:42 +01:00
parent c2d70a071f
commit dd8086772d
7 changed files with 27 additions and 11 deletions

View File

@@ -1786,6 +1786,7 @@ _get_group(preference_t pref)
case PREF_RECEIPTS_REQUEST:
case PREF_REVEAL_OS:
case PREF_TLS_CERTPATH:
case PREF_CORRECTION_ALLOW:
return PREF_GROUP_CONNECTION;
case PREF_OTR_LOG:
case PREF_OTR_POLICY:
@@ -2036,6 +2037,8 @@ _get_key(preference_t pref)
return "log";
case PREF_OMEMO_POLICY:
return "policy";
case PREF_CORRECTION_ALLOW:
return "correction.allow";
default:
return NULL;
}

View File

@@ -161,6 +161,7 @@ typedef enum {
PREF_OMEMO_LOG,
PREF_OMEMO_POLICY,
PREF_OCCUPANTS_WRAP,
PREF_CORRECTION_ALLOW,
} preference_t;
typedef struct prof_alias_t {