diff options
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)); } |
