diff options
| author | levlam <levlam@telegram.org> | 2022-12-14 02:24:38 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2022-12-14 02:24:38 +0300 |
| commit | e531ae2eb01d5c0ba2a195c8d860a4e53689a729 (patch) | |
| tree | e6cf638be09f268595bc5df2a29275975f72e186 /td/telegram/ForumTopicManager.h | |
| parent | d4dc4b6c4e5d4fc88dd4182a4d3f8bc4da6ae325 (diff) | |
Never create again deleted forum topics.
Diffstat (limited to 'td/telegram/ForumTopicManager.h')
| -rw-r--r-- | td/telegram/ForumTopicManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/td/telegram/ForumTopicManager.h b/td/telegram/ForumTopicManager.h index 4f5b67a80..a26c94ebd 100644 --- a/td/telegram/ForumTopicManager.h +++ b/td/telegram/ForumTopicManager.h @@ -24,6 +24,7 @@ #include "td/utils/Promise.h" #include "td/utils/Status.h" #include "td/utils/WaitFreeHashMap.h" +#include "td/utils/WaitFreeHashSet.h" namespace td { @@ -117,6 +118,7 @@ class ForumTopicManager final : public Actor { struct DialogTopics { WaitFreeHashMap<MessageId, unique_ptr<Topic>, MessageIdHash> topics_; + WaitFreeHashSet<MessageId, MessageIdHash> deleted_topic_ids_; }; void tear_down() final; |
