about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-17 08:31:46 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-17 08:31:46 +0100
commit36713a2ed73368cf1892ce1fa43bb74106657391 (patch)
treeabb484bef8c8017df07a21eb81de2966323e956a /src/ui/console.c
parent674a8aaf7ec08f9ec8be79e41cc7d4c8f3e81970 (diff)
downloadprofani-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/console.c')
-rw-r--r--src/ui/console.c6
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();
 }