mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Provide custom emoji factory through MarkedTextContext.
This commit is contained in:
@@ -62,6 +62,7 @@ class PhotoMedia;
|
||||
class Stickers;
|
||||
class GroupCall;
|
||||
class NotifySettings;
|
||||
class CustomEmojiManager;
|
||||
|
||||
class Session final {
|
||||
public:
|
||||
@@ -120,6 +121,9 @@ public:
|
||||
[[nodiscard]] NotifySettings ¬ifySettings() const {
|
||||
return *_notifySettings;
|
||||
}
|
||||
[[nodiscard]] CustomEmojiManager &customEmojiManager() const {
|
||||
return *_customEmojiManager;
|
||||
}
|
||||
|
||||
[[nodiscard]] MsgId nextNonHistoryEntryId() {
|
||||
return ++_nonHistoryEntryId;
|
||||
@@ -978,6 +982,7 @@ private:
|
||||
std::unique_ptr<SponsoredMessages> _sponsoredMessages;
|
||||
const std::unique_ptr<Reactions> _reactions;
|
||||
const std::unique_ptr<NotifySettings> _notifySettings;
|
||||
const std::unique_ptr<CustomEmojiManager> _customEmojiManager;
|
||||
|
||||
MsgId _nonHistoryEntryId = ServerMaxMsgId.bare + ScheduledMsgIdsRange;
|
||||
|
||||
|
Reference in New Issue
Block a user