Improve actor of TopicCreated chat log event.
This commit is contained in:
parent
7df7dfcd62
commit
e14d72306f
@ -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: {
|
||||
|
@ -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_;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user