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:
parent
4e1ffa6bdb
commit
88670a7f0b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user