From 4c404f3a68307569778ed79cb45183f30b4d429a Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 6 Jul 2018 03:10:50 +0300 Subject: [PATCH] Drop dialog unread counter when viewMessages is called. GitOrigin-RevId: 0f6f4cfaaf6575383d0d0dcb4c5d3f71ca5c44bb --- td/telegram/MessagesManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 5a1a1cb57..66ff7dddc 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -13306,6 +13306,9 @@ Status MessagesManager::view_messages(DialogId dialog_id, const vectoris_marked_as_unread) { + set_dialog_is_marked_as_unread(d, false); + } return Status::OK(); }