mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Don't autoread mentions with voice/video messages.
Voice/video message unread flag is the same that mention unread flag. If we mark such mentions as read together with all others we mark media as watched/listened instantly when they appear on the screen. So now we mark as read only simple mentions, without "unread" media.
This commit is contained in:
@@ -555,8 +555,7 @@ void RowPainter::paint(
|
||||
if (displayMentionBadge
|
||||
&& unreadCount == 1
|
||||
&& item
|
||||
&& item->isMediaUnread()
|
||||
&& item->mentionsMe()) {
|
||||
&& item->isUnreadMention()) {
|
||||
return false;
|
||||
}
|
||||
return (unreadCount > 0);
|
||||
|
||||
Reference in New Issue
Block a user