From 68eb99bde093ce3fe434b1df9f9b009b65cbe6a6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 17 Mar 2023 16:48:39 +0400 Subject: [PATCH] Mark as read only in visible non minimized window. I hope this fixes #26050. --- Telegram/SourceFiles/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index e19cfeab8..a3f9343c8 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -544,6 +544,8 @@ bool MainWindow::markingAsRead() const { && !_main->isHidden() && !_main->animatingShow() && !_layer + && !isHidden() + && !isMinimized() && (AutoScrollInactiveChat.value() || (isActive() && !_main->session().updates().isIdle())); }