Gray unread reaction mention in muted chats.

This commit is contained in:
John Preston 2022-03-16 10:11:16 +04:00
parent 13106d781e
commit 22dc842705

View file

@ -801,7 +801,6 @@ void RowPainter::paint(
const auto unreadCount = entry->chatListUnreadCount();
const auto unreadMark = entry->chatListUnreadMark();
const auto unreadMuted = entry->chatListMutedBadge();
const auto mentionOrReactionMuted = (entry->folder() != nullptr);
const auto item = entry->chatListMessage();
const auto cloudDraft = [&]() -> const Data::Draft*{
if (history && (!item || (!unreadCount && !unreadMark))) {
@ -832,6 +831,8 @@ void RowPainter::paint(
const auto displayReactionBadge = !displayMentionBadge
&& history
&& history->unreadReactions().has();
const auto mentionOrReactionMuted = (entry->folder() != nullptr)
|| (!displayMentionBadge && unreadMuted);
const auto displayUnreadCounter = [&] {
if (displayMentionBadge
&& unreadCount == 1