2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Move a lot of settings to Core::Settings.

This commit is contained in:
John Preston
2020-06-18 22:04:16 +04:00
parent 4d6cc58f0d
commit 83538675ce
112 changed files with 1761 additions and 1482 deletions

View File

@@ -20,7 +20,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_account.h"
//#include "storage/storage_feed_messages.h" // #feed
#include "main/main_session.h"
#include "main/main_session_settings.h"
#include "mtproto/mtproto_config.h"
#include "apiwrap.h"
#include "mainwidget.h"
@@ -372,7 +371,7 @@ bool Folder::shouldBeInChatList() const {
int Folder::chatListUnreadCount() const {
const auto state = chatListUnreadState();
return state.marks
+ (session().settings().countUnreadMessages()
+ (Core::App().settings().countUnreadMessages()
? state.messages
: state.chats);
}