mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Move a lot of settings to Core::Settings.
This commit is contained in:
@@ -23,7 +23,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "base/crc32hash.h"
|
||||
#include "data/data_session.h"
|
||||
#include "main/main_account.h" // Account::local.
|
||||
#include "main/main_accounts.h" // Accounts::activeSessionValue.
|
||||
#include "main/main_domain.h" // Domain::activeSessionValue.
|
||||
#include "ui/image/image.h"
|
||||
#include "boxes/background_box.h"
|
||||
#include "core/application.h"
|
||||
@@ -548,7 +548,7 @@ void ChatBackground::start() {
|
||||
set(Data::ThemeWallPaper());
|
||||
}
|
||||
|
||||
Core::App().accounts().activeSessionValue(
|
||||
Core::App().domain().activeSessionValue(
|
||||
) | rpl::filter([=](Main::Session *session) {
|
||||
return session != _session;
|
||||
}) | rpl::start_with_next([=](Main::Session *session) {
|
||||
|
Reference in New Issue
Block a user