1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Add OMEMO state in titlebar in MUC

This commit is contained in:
Paul Fariello 2019-03-19 12:55:56 +01:00
parent 88670a7f0b
commit e5b01ed71b

View File

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