2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Added manager of sponsored messages.

This commit is contained in:
23rd
2021-09-26 21:24:47 +03:00
committed by John Preston
parent 0c906a5e6d
commit eda5cd47ad
10 changed files with 301 additions and 2 deletions

View File

@@ -51,6 +51,7 @@ class LocationPoint;
class WallPaper;
class ScheduledMessages;
class SendActionManager;
class SponsoredMessages;
class ChatFilters;
class CloudThemes;
class Streaming;
@@ -109,6 +110,9 @@ public:
[[nodiscard]] Stickers &stickers() const {
return *_stickers;
}
[[nodiscard]] SponsoredMessages &sponsoredMessages() const {
return *_sponsoredMessages;
}
[[nodiscard]] MsgId nextNonHistoryEntryId() {
return ++_nonHistoryEntryId;
}
@@ -963,6 +967,7 @@ private:
std::unique_ptr<MediaRotation> _mediaRotation;
std::unique_ptr<Histories> _histories;
std::unique_ptr<Stickers> _stickers;
std::unique_ptr<SponsoredMessages> _sponsoredMessages;
MsgId _nonHistoryEntryId = ServerMaxMsgId;
rpl::lifetime _lifetime;