From b16696db93919f73736b77b041b4b0b9ab92eb98 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 13 Apr 2020 14:50:38 +0400 Subject: [PATCH] Don't scroll down when read from another device. --- Telegram/SourceFiles/history/history.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index fa69e0a9d..e613e6ab2 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -1706,9 +1706,6 @@ void History::applyInboxReadUpdate( } void History::inboxRead(MsgId upTo, std::optional stillUnread) { - if (unreadCount() > 0 && loadedAtBottom()) { - App::main()->historyToDown(this); - } if (stillUnread.has_value() && folderKnown()) { setUnreadCount(*stillUnread); } else if (const auto still = countStillUnreadLocal(upTo)) {