mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00: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:
@@ -4127,7 +4127,7 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
|
||||
auto possiblyReadMentions = base::flat_set<MsgId>();
|
||||
for_const (auto &msgId, d.vmessages.v) {
|
||||
if (auto item = App::histItemById(channel, msgId.v)) {
|
||||
if (item->isMediaUnread()) {
|
||||
if (item->isUnreadMedia() || item->isUnreadMention()) {
|
||||
item->markMediaRead();
|
||||
Auth().data().requestItemRepaint(item);
|
||||
}
|
||||
|
Reference in New Issue
Block a user