2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Implement chatbots section editing.

This commit is contained in:
John Preston
2024-02-20 16:02:02 +04:00
parent 205479fccc
commit ad9107ca90
18 changed files with 670 additions and 234 deletions

View File

@@ -62,6 +62,7 @@ class NotifySettings;
class CustomEmojiManager;
class Stories;
class SavedMessages;
class Chatbots;
struct ReactionId;
struct RepliesReadTillUpdate {
@@ -142,6 +143,9 @@ public:
[[nodiscard]] SavedMessages &savedMessages() const {
return *_savedMessages;
}
[[nodiscard]] Chatbots &chatbots() const {
return *_chatbots;
}
[[nodiscard]] MsgId nextNonHistoryEntryId() {
return ++_nonHistoryEntryId;
@@ -1065,6 +1069,7 @@ private:
const std::unique_ptr<CustomEmojiManager> _customEmojiManager;
const std::unique_ptr<Stories> _stories;
const std::unique_ptr<SavedMessages> _savedMessages;
const std::unique_ptr<Chatbots> _chatbots;
MsgId _nonHistoryEntryId = ServerMaxMsgId.bare + ScheduledMsgIdsRange;