2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Parse and apply cloud filters.

This commit is contained in:
John Preston
2020-02-07 20:07:21 +04:00
parent ed715fb810
commit 11d31ffc84
13 changed files with 420 additions and 90 deletions

View File

@@ -14,7 +14,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "dialogs/dialogs_main_list.h"
#include "data/data_groups.h"
#include "data/data_notify_settings.h"
#include "data/data_chat_filters.h"
#include "history/history_location_manager.h"
#include "base/timer.h"
#include "base/flags.h"
@@ -59,6 +58,7 @@ class Folder;
class LocationPoint;
class WallPaper;
class ScheduledMessages;
class ChatFilters;
class CloudThemes;
class Streaming;
class MediaRotation;
@@ -86,6 +86,9 @@ public:
[[nodiscard]] const Groups &groups() const {
return _groups;
}
[[nodiscard]] ChatFilters &chatsFilters() const {
return *_chatsFilters;
}
[[nodiscard]] ScheduledMessages &scheduledMessages() const {
return *_scheduledMessages;
}
@@ -626,8 +629,6 @@ public:
Data::Folder *folder = nullptr);
[[nodiscard]] not_null<const Dialogs::MainList*> chatsList(
Data::Folder *folder = nullptr) const;
[[nodiscard]] not_null<ChatFilters*> chatsFilters();
[[nodiscard]] not_null<const ChatFilters*> chatsFilters() const;
[[nodiscard]] not_null<Dialogs::IndexedList*> contactsList();
[[nodiscard]] not_null<Dialogs::IndexedList*> contactsNoChatsList();
@@ -874,7 +875,6 @@ private:
Stickers::SavedGifs _savedGifs;
Dialogs::MainList _chatsList;
ChatFilters _chatsFilters;
Dialogs::IndexedList _contactsList;
Dialogs::IndexedList _contactsNoChatsList;
@@ -980,6 +980,7 @@ private:
int32 _wallpapersHash = 0;
Groups _groups;
std::unique_ptr<ChatFilters> _chatsFilters;
std::unique_ptr<ScheduledMessages> _scheduledMessages;
std::unique_ptr<CloudThemes> _cloudThemes;
std::unique_ptr<Streaming> _streaming;