Improve actor of TopicCreated chat log event.

This commit is contained in:
levlam 2022-11-04 17:52:26 +03:00
parent 7df7dfcd62
commit e14d72306f
2 changed files with 5 additions and 0 deletions

View File

@ -368,6 +368,7 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
if (topic_info.is_empty()) {
return nullptr;
}
actor_dialog_id = topic_info.get_creator_dialog_id();
return td_api::make_object<td_api::chatEventForumTopicCreated>(topic_info.get_forum_topic_info_object(td));
}
case telegram_api::channelAdminLogEventActionEditTopic::ID: {

View File

@ -55,6 +55,10 @@ class ForumTopicInfo {
return top_thread_message_id_;
}
DialogId get_creator_dialog_id() const {
return creator_dialog_id_;
}
bool is_outgoing() const {
return is_outgoing_;
}