1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Add OMEMO state in titlebar

This commit is contained in:
Paul Fariello 2019-03-19 12:46:12 +01:00
parent 4e1ffa6bdb
commit 88670a7f0b

View File

@ -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);