Mark as read only in visible non minimized window.

I hope this fixes #26050.
This commit is contained in:
John Preston 2023-03-17 16:48:39 +04:00
parent 84c75f4a74
commit 68eb99bde0
1 changed files with 2 additions and 0 deletions

View File

@ -544,6 +544,8 @@ bool MainWindow::markingAsRead() const {
&& !_main->isHidden()
&& !_main->animatingShow()
&& !_layer
&& !isHidden()
&& !isMinimized()
&& (AutoScrollInactiveChat.value()
|| (isActive() && !_main->session().updates().isIdle()));
}