diff options
| author | levlam <levlam@telegram.org> | 2022-12-05 18:46:07 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-12-05 18:46:07 +0300 |
| commit | c654041d9b90f194a1607dee83b1537a61cb9fe3 (patch) | |
| tree | 10c4ed6370c01023a1aaf9e675a6f6f83f965ef5 /td/telegram/ForumTopicManager.h | |
| parent | d27181a69d5f833e6fd4cb46695749e343618466 (diff) | |
Add Topic.need_save_to_database_.
Diffstat (limited to 'td/telegram/ForumTopicManager.h')
| -rw-r--r-- | td/telegram/ForumTopicManager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/td/telegram/ForumTopicManager.h b/td/telegram/ForumTopicManager.h index 1fd71aa80..ae7f59a48 100644 --- a/td/telegram/ForumTopicManager.h +++ b/td/telegram/ForumTopicManager.h @@ -80,6 +80,7 @@ class ForumTopicManager final : public Actor { unique_ptr<ForumTopicInfo> info_; unique_ptr<ForumTopic> topic_; int32 message_count_ = 0; + mutable bool need_save_to_database_ = true; template <class StorerT> void store(StorerT &storer) const; @@ -116,7 +117,7 @@ class ForumTopicManager final : public Actor { const ForumTopicInfo *get_topic_info(DialogId dialog_id, MessageId top_thread_message_id) const; - bool set_topic_info(DialogId dialog_id, Topic *topic, unique_ptr<ForumTopicInfo> forum_topic_info); + void set_topic_info(DialogId dialog_id, Topic *topic, unique_ptr<ForumTopicInfo> forum_topic_info); void on_delete_forum_topic(DialogId dialog_id, MessageId top_thread_message_id, Promise<Unit> &&promise); |
