Drop dialog unread counter when viewMessages is called.

GitOrigin-RevId: 0f6f4cfaaf6575383d0d0dcb4c5d3f71ca5c44bb
This commit is contained in:
levlam 2018-07-06 03:10:50 +03:00
parent 3a2ef50f91
commit 4c404f3a68

View File

@ -13306,6 +13306,9 @@ Status MessagesManager::view_messages(DialogId dialog_id, const vector<MessageId
}
}
}
if (need_read && d->is_marked_as_unread) {
set_dialog_is_marked_as_unread(d, false);
}
return Status::OK();
}