diff options
| author | levlam <levlam@telegram.org> | 2026-07-09 23:44:33 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-07-09 23:44:33 +0300 |
| commit | c0983b4c1dd7c01abd6553dd114b2d940beab070 (patch) | |
| tree | b7de04d62f7b191ffa0196c26b9c3adca4ac36b3 /td/telegram/Td.cpp | |
| parent | b6c84162520d0c9136aa694b3d7ec86d2c1e1a54 (diff) | |
Add td_api::community.
Diffstat (limited to 'td/telegram/Td.cpp')
| -rw-r--r-- | td/telegram/Td.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index d2929096a..8121c6bb4 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -960,6 +960,11 @@ void Td::init(Parameters parameters, Result<TdDb::OpenedDatabase> r_opened_datab void Td::process_binlog_events(TdDb::OpenedDatabase &&events) { VLOG(td_init) << "Send binlog events"; + // users and channels may contain links to communities, therefore must be inited after + for (auto &event : events.community_events) { + community_manager_->on_binlog_community_event(std::move(event)); + } + for (auto &event : events.user_events) { user_manager_->on_binlog_user_event(std::move(event)); } @@ -968,7 +973,7 @@ void Td::process_binlog_events(TdDb::OpenedDatabase &&events) { chat_manager_->on_binlog_channel_event(std::move(event)); } - // chats may contain links to channels, so should be inited after + // chats may contain links to channels, so must be inited after for (auto &event : events.chat_events) { chat_manager_->on_binlog_chat_event(std::move(event)); } |
