Don't initialize story sender for anonymous administrators.
This commit is contained in:
parent
6dfdb00f85
commit
4198bff4af
@ -4768,7 +4768,7 @@ void StoryManager::send_story(DialogId dialog_id, td_api::object_ptr<td_api::Inp
|
||||
if (dialog_id.get_type() == DialogType::Channel &&
|
||||
td_->contacts_manager_->is_megagroup_channel(dialog_id.get_channel_id())) {
|
||||
story->sender_dialog_id_ = td_->messages_manager_->get_dialog_default_send_message_as_dialog_id(dialog_id);
|
||||
if (story->sender_dialog_id_ == DialogId()) {
|
||||
if (story->sender_dialog_id_ == DialogId() && !td_->dialog_manager_->is_anonymous_administrator(dialog_id, nullptr)) {
|
||||
story->sender_dialog_id_ = td_->dialog_manager_->get_my_dialog_id();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user