mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 20:26:21 +00:00
fix: Dont OMEMO trust check so often
a26cdf386b / #2104 added OMEMO trust status to the
title bar, but it was being re-calculated on UI refresh.
Update only on certain operations (like `/omemo trust`, new device
discoveries and even incoming OMEMO messages for example).
This commit is contained in:
@@ -431,7 +431,7 @@ _show_muc_privacy(ProfMucWin* mucwin)
|
||||
wattroff(win, bracket_attrs);
|
||||
|
||||
#ifdef HAVE_OMEMO
|
||||
if (omemo_is_jid_trusted(mucwin->roomjid)) {
|
||||
if (mucwin->omemo_trusted) {
|
||||
wprintw(win, " ");
|
||||
wattron(win, bracket_attrs);
|
||||
wprintw(win, "[");
|
||||
@@ -586,7 +586,7 @@ _show_privacy(ProfChatWin* chatwin)
|
||||
wattroff(win, bracket_attrs);
|
||||
|
||||
#ifdef HAVE_OMEMO
|
||||
if (omemo_is_jid_trusted(chatwin->barejid)) {
|
||||
if (chatwin->omemo_trusted) {
|
||||
wprintw(win, " ");
|
||||
wattron(win, bracket_attrs);
|
||||
wprintw(win, "[");
|
||||
|
||||
Reference in New Issue
Block a user