diff options
author | Paul Fariello <paul@fariello.eu> | 2019-03-19 12:46:12 +0100 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-04-10 17:12:31 +0200 |
commit | 88670a7f0b1275d9a0b2eebc0cdf5ff0e1cdc337 (patch) | |
tree | 6af705e132b9e1698558290479fbd094e0e2d170 | |
parent | 4e1ffa6bdb89269fa5eff9e5ee2484106d52d149 (diff) | |
download | profani-tty-88670a7f0b1275d9a0b2eebc0cdf5ff0e1cdc337.tar.gz |
Add OMEMO state in titlebar
-rw-r--r-- | src/ui/titlebar.c | 15 |
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); |