aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/CommunityManager.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-07-09 12:18:00 +0300
committerlevlam <levlam@telegram.org>2026-07-09 12:18:00 +0300
commita17f7d29e5e19f07843537aff8d6bc6d7a677390 (patch)
treec0c2496a1b7f8f29d6d5986c013a26b2f02d1e60 /td/telegram/CommunityManager.cpp
parent62621ec331eed294bdec25bc3c3fb42d06f211fe (diff)
Add CommunityManager.
Diffstat (limited to 'td/telegram/CommunityManager.cpp')
-rw-r--r--td/telegram/CommunityManager.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/td/telegram/CommunityManager.cpp b/td/telegram/CommunityManager.cpp
new file mode 100644
index 000000000..3c5625b37
--- /dev/null
+++ b/td/telegram/CommunityManager.cpp
@@ -0,0 +1,18 @@
+//
+// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2025
+//
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+#include "td/telegram/CommunityManager.h"
+
+namespace td {
+
+CommunityManager::CommunityManager(Td *td, ActorShared<> parent) : td_(td), parent_(std::move(parent)) {
+}
+
+void CommunityManager::tear_down() {
+ parent_.reset();
+}
+
+} // namespace td