Add updateStoryDeleted,
This commit is contained in:
parent
7ca2061848
commit
3501529a95
@ -5639,6 +5639,9 @@ updateUnreadChatCount chat_list:ChatList total_count:int32 unread_count:int32 un
|
||||
//@description A story was changed @story The new information about the story
|
||||
updateStory story:story = Update;
|
||||
|
||||
//@description A story became inaccessible @sender_user_id Identifier of the user that created the story @story_id Story identifier
|
||||
updateStoryDeleted sender_user_id:int53 story_id:int32 = Update;
|
||||
|
||||
//@description An option changed its value @name The option name @value The new option value
|
||||
updateOption name:string value:OptionValue = Update;
|
||||
|
||||
|
@ -668,6 +668,13 @@ void StoryManager::on_delete_story(DialogId owner_dialog_id, StoryId story_id) {
|
||||
if (story == nullptr) {
|
||||
return;
|
||||
}
|
||||
if (story->is_update_sent_) {
|
||||
CHECK(owner_dialog_id.get_type() == DialogType::User);
|
||||
send_closure(G()->td(), &Td::send_update,
|
||||
td_api::make_object<td_api::updateStoryDeleted>(
|
||||
td_->contacts_manager_->get_user_id_object(owner_dialog_id.get_user_id(), "updateStoryDeleted"),
|
||||
story_id.get()));
|
||||
}
|
||||
delete_story_files(story);
|
||||
stories_.erase(story_full_id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user