2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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:
John Preston
2018-12-26 14:28:24 +04:00
parent 874d76b16b
commit b00ca217b3
12 changed files with 43 additions and 21 deletions

View File

@@ -2173,7 +2173,7 @@ void HistoryWidget::newUnreadMsg(
destroyUnreadBar();
}
if (App::wnd()->doWeReadServerHistory()) {
if (item->mentionsMe() && item->isMediaUnread()) {
if (item->isUnreadMention() && !item->isUnreadMedia()) {
Auth().api().markMediaRead(item);
}
Auth().api().readServerHistoryForce(history);