mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Gray unread reaction mention in muted chats.
This commit is contained in:
parent
13106d781e
commit
22dc842705
1 changed files with 2 additions and 1 deletions
|
@ -801,7 +801,6 @@ void RowPainter::paint(
|
||||||
const auto unreadCount = entry->chatListUnreadCount();
|
const auto unreadCount = entry->chatListUnreadCount();
|
||||||
const auto unreadMark = entry->chatListUnreadMark();
|
const auto unreadMark = entry->chatListUnreadMark();
|
||||||
const auto unreadMuted = entry->chatListMutedBadge();
|
const auto unreadMuted = entry->chatListMutedBadge();
|
||||||
const auto mentionOrReactionMuted = (entry->folder() != nullptr);
|
|
||||||
const auto item = entry->chatListMessage();
|
const auto item = entry->chatListMessage();
|
||||||
const auto cloudDraft = [&]() -> const Data::Draft*{
|
const auto cloudDraft = [&]() -> const Data::Draft*{
|
||||||
if (history && (!item || (!unreadCount && !unreadMark))) {
|
if (history && (!item || (!unreadCount && !unreadMark))) {
|
||||||
|
@ -832,6 +831,8 @@ void RowPainter::paint(
|
||||||
const auto displayReactionBadge = !displayMentionBadge
|
const auto displayReactionBadge = !displayMentionBadge
|
||||||
&& history
|
&& history
|
||||||
&& history->unreadReactions().has();
|
&& history->unreadReactions().has();
|
||||||
|
const auto mentionOrReactionMuted = (entry->folder() != nullptr)
|
||||||
|
|| (!displayMentionBadge && unreadMuted);
|
||||||
const auto displayUnreadCounter = [&] {
|
const auto displayUnreadCounter = [&] {
|
||||||
if (displayMentionBadge
|
if (displayMentionBadge
|
||||||
&& unreadCount == 1
|
&& unreadCount == 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue