diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-17 08:31:46 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-17 08:31:46 +0100 |
commit | 36713a2ed73368cf1892ce1fa43bb74106657391 (patch) | |
tree | abb484bef8c8017df07a21eb81de2966323e956a /src/ui | |
parent | 674a8aaf7ec08f9ec8be79e41cc7d4c8f3e81970 (diff) | |
download | profani-tty-36713a2ed73368cf1892ce1fa43bb74106657391.tar.gz |
Make /sendfile in OMEMO session configurable
`/omemo sendfile on` allows unencrypted file transfer in an OMEMO session. Regards https://github.com/profanity-im/profanity/pull/1270
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index f7fa448d..6de8258f 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -2118,6 +2118,12 @@ cons_show_omemo_prefs(void) char ch = prefs_get_omemo_char(); cons_show("OMEMO char (/omemo char) : %c", ch); + if (prefs_get_boolean(PREF_OMEMO_SENDFILE)) { + cons_show("Allow sending unencrypted files in an OMEMO session via /sendfile (/omemo sendfile): ON"); + } else { + cons_show("Allow sending unencrypted files in an OMEMO session via /sendfile (/omemo sendfile): OFF"); + } + cons_alert(); } |