mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Beta version 4.5.4: Fix "Mark-as-read-inactive setting."
This commit is contained in:
@@ -41,6 +41,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "settings/settings_intro.h"
|
||||
#include "platform/platform_notifications_manager.h"
|
||||
#include "base/platform/base_platform_info.h"
|
||||
#include "base/options.h"
|
||||
#include "base/variant.h"
|
||||
#include "window/notifications_manager.h"
|
||||
#include "window/themes/window_theme.h"
|
||||
@@ -85,6 +86,9 @@ base::options::toggle AutoScrollInactiveChat({
|
||||
|
||||
} // namespace
|
||||
|
||||
const char kOptionAutoScrollInactiveChat[] =
|
||||
"auto-scroll-inactive-chat";
|
||||
|
||||
MainWindow::MainWindow(not_null<Window::Controller*> controller)
|
||||
: Platform::MainWindow(controller) {
|
||||
resize(st::windowDefaultWidth, st::windowDefaultHeight);
|
||||
@@ -545,7 +549,7 @@ bool MainWindow::markingAsRead() const {
|
||||
&& !_main->isHidden()
|
||||
&& !_main->animatingShow()
|
||||
&& !_layer
|
||||
&& (AutoScrollInactiveChat().value()
|
||||
&& (AutoScrollInactiveChat.value()
|
||||
|| (isActive() && !_main->session().updates().isIdle()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user