From e5b01ed71b415c51abcdb63bb4dc1482b0d9248d Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Tue, 19 Mar 2019 12:55:56 +0100 Subject: [PATCH] Add OMEMO state in titlebar in MUC --- src/ui/titlebar.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c index 6c8fe3aa..e1758d81 100644 --- a/src/ui/titlebar.c +++ b/src/ui/titlebar.c @@ -321,6 +321,21 @@ _show_muc_privacy(ProfMucWin *mucwin) int bracket_attrs = theme_attrs(THEME_TITLE_BRACKET); int encrypted_attrs = theme_attrs(THEME_TITLE_ENCRYPTED); + if (mucwin->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 (mucwin->enctext) { wprintw(win, " "); wattron(win, bracket_attrs);