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:
parent
88670a7f0b
commit
e5b01ed71b
@ -321,6 +321,21 @@ _show_muc_privacy(ProfMucWin *mucwin)
|
|||||||
int bracket_attrs = theme_attrs(THEME_TITLE_BRACKET);
|
int bracket_attrs = theme_attrs(THEME_TITLE_BRACKET);
|
||||||
int encrypted_attrs = theme_attrs(THEME_TITLE_ENCRYPTED);
|
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) {
|
if (mucwin->enctext) {
|
||||||
wprintw(win, " ");
|
wprintw(win, " ");
|
||||||
wattron(win, bracket_attrs);
|
wattron(win, bracket_attrs);
|
||||||
|
Loading…
Reference in New Issue
Block a user