diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-05-09 14:11:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 14:11:02 +0200 |
commit | b82a9e1c7fd95265be8dad1f2071f6462aa60c03 (patch) | |
tree | 096ada380ac10ed66215009f4c320cb59018c0a6 /src/config | |
parent | 54b57326b89628601d1cd9fb55cbe0f08392e9e4 (diff) | |
parent | 2e76e4f0c7cc574c5d07a9ddb709eee82848a641 (diff) | |
download | profani-tty-b82a9e1c7fd95265be8dad1f2071f6462aa60c03.tar.gz |
Merge pull request #1705 from profanity-im/feat/ox-improvements2
Improvements for OX part 2
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 6 | ||||
-rw-r--r-- | src/config/preferences.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 62b75051..47be88fd 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1882,6 +1882,8 @@ _get_group(preference_t pref) case PREF_OMEMO_POLICY: case PREF_OMEMO_TRUST_MODE: return PREF_GROUP_OMEMO; + case PREF_OX_LOG: + return PREF_GROUP_OX; default: return NULL; } @@ -2153,6 +2155,8 @@ _get_key(preference_t pref) return "stamp.outgoing"; case PREF_INCOMING_STAMP: return "stamp.incoming"; + case PREF_OX_LOG: + return "log"; default: return NULL; } @@ -2297,6 +2301,8 @@ _get_default_string(preference_t pref) return NULL; case PREF_URL_SAVE_CMD: return NULL; // Default to built-in method. + case PREF_OX_LOG: + return "redact"; default: return NULL; } diff --git a/src/config/preferences.h b/src/config/preferences.h index 46f2669a..5fef498d 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -179,6 +179,7 @@ typedef enum { PREF_OUTGOING_STAMP, PREF_INCOMING_STAMP, PREF_NOTIFY_ROOM_OFFLINE, + PREF_OX_LOG, } preference_t; typedef struct prof_alias_t |