mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Use available reactions list from the server.
This commit is contained in:
@@ -52,6 +52,7 @@ class WallPaper;
|
||||
class ScheduledMessages;
|
||||
class SendActionManager;
|
||||
class SponsoredMessages;
|
||||
class Reactions;
|
||||
class ChatFilters;
|
||||
class CloudThemes;
|
||||
class Streaming;
|
||||
@@ -113,6 +114,10 @@ public:
|
||||
[[nodiscard]] SponsoredMessages &sponsoredMessages() const {
|
||||
return *_sponsoredMessages;
|
||||
}
|
||||
[[nodiscard]] Reactions &reactions() const {
|
||||
return *_reactions;
|
||||
}
|
||||
|
||||
[[nodiscard]] MsgId nextNonHistoryEntryId() {
|
||||
return ++_nonHistoryEntryId;
|
||||
}
|
||||
@@ -962,15 +967,17 @@ private:
|
||||
uint64 _wallpapersHash = 0;
|
||||
|
||||
Groups _groups;
|
||||
std::unique_ptr<ChatFilters> _chatsFilters;
|
||||
const std::unique_ptr<ChatFilters> _chatsFilters;
|
||||
std::unique_ptr<ScheduledMessages> _scheduledMessages;
|
||||
std::unique_ptr<CloudThemes> _cloudThemes;
|
||||
std::unique_ptr<SendActionManager> _sendActionManager;
|
||||
std::unique_ptr<Streaming> _streaming;
|
||||
std::unique_ptr<MediaRotation> _mediaRotation;
|
||||
std::unique_ptr<Histories> _histories;
|
||||
std::unique_ptr<Stickers> _stickers;
|
||||
const std::unique_ptr<CloudThemes> _cloudThemes;
|
||||
const std::unique_ptr<SendActionManager> _sendActionManager;
|
||||
const std::unique_ptr<Streaming> _streaming;
|
||||
const std::unique_ptr<MediaRotation> _mediaRotation;
|
||||
const std::unique_ptr<Histories> _histories;
|
||||
const std::unique_ptr<Stickers> _stickers;
|
||||
std::unique_ptr<SponsoredMessages> _sponsoredMessages;
|
||||
const std::unique_ptr<Reactions> _reactions;
|
||||
|
||||
MsgId _nonHistoryEntryId = ServerMaxMsgId;
|
||||
|
||||
rpl::lifetime _lifetime;
|
||||
|
Reference in New Issue
Block a user