about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-19 12:46:12 +0100
committerPaul Fariello <paul@fariello.eu>2019-04-10 17:12:31 +0200
commit88670a7f0b1275d9a0b2eebc0cdf5ff0e1cdc337 (patch)
tree6af705e132b9e1698558290479fbd094e0e2d170
parent4e1ffa6bdb89269fa5eff9e5ee2484106d52d149 (diff)
downloadprofani-tty-88670a7f0b1275d9a0b2eebc0cdf5ff0e1cdc337.tar.gz
Add OMEMO state in titlebar
-rw-r--r--src/ui/titlebar.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c
index f519fdd2..6c8fe3aa 100644
--- a/src/ui/titlebar.c
+++ b/src/ui/titlebar.c
@@ -421,6 +421,21 @@ _show_privacy(ProfChatWin *chatwin)
         return;
     }
 
+    if (chatwin->is_omemo) {
+        wprintw(win, " ");
+        wattron(win, bracket_attrs);
+        wprintw(win, "[");
+        wattroff(win, bracket_attrs);
+        wattron(win, encrypted_attrs);
+        wprintw(win, "OMEMO");
+        wattroff(win, encrypted_attrs);
+        wattron(win, bracket_attrs);
+        wprintw(win, "]");
+        wattroff(win, bracket_attrs);
+
+        return;
+    }
+
     if (prefs_get_boolean(PREF_ENC_WARN)) {
         wprintw(win, " ");
         wattron(win, bracket_attrs);