Remove chat_id from activeStories.

This commit is contained in:
levlam 2023-07-07 16:08:03 +03:00
parent e27ded859b
commit 5c3a15e266
2 changed files with 11 additions and 9 deletions

View File

@ -4960,10 +4960,9 @@ storyInfo story_id:int32 date:int32 = StoryInfo;
//@description Describes active stories sent by the same sender
//@list Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list
//@order A parameter used to determine order of the stories in the story list; 0 if the stories doesn't need to be shown in the story list. Stories must be sorted by the pair (order, story_sender_chat_id) in descending order
//@chat_id Identifier of the chat that posted the the stories
//@max_read_story_id Identifier of the last read active story
//@stories Basic information about the stories; use getStory to get full information about the stories. The stories are in a chronological order (i.e., in order of increasing story identifiers)
activeStories list:StoryList order:int53 chat_id:int53 max_read_story_id:int32 stories:vector<storyInfo> = ActiveStories;
activeStories list:StoryList order:int53 max_read_story_id:int32 stories:vector<storyInfo> = ActiveStories;
//@description Contains a part of a file @data File bytes
@ -5727,8 +5726,10 @@ updateStory story:story = Update;
//@description A story became inaccessible @story_sender_chat_id Identifier of the chat that posted the story @story_id Story identifier
updateStoryDeleted story_sender_chat_id:int53 story_id:int32 = Update;
//@description The list of active stories of a specific sender has changed @active_stories The new list of active stories
updateActiveStories active_stories:activeStories = Update;
//@description The list of active stories of a specific sender has changed
//@chat_id Identifier of the chat that posted the stories
//@active_stories The new list of active stories
updateActiveStories chat_id:int53 active_stories:activeStories = Update;
//@description An option changed its value @name The option name @value The new option value
updateOption name:string value:OptionValue = Update;
@ -7673,7 +7674,7 @@ setGroupCallParticipantIsSpeaking group_call_id:int32 audio_source:int32 is_spea
//@description Toggles whether a participant of an active group call is muted, unmuted, or allowed to unmute themselves
//@group_call_id Group call identifier
//@participant_id Participant identifier
//@is_muted Pass true to mute the user; pass false to unmute the them
//@is_muted Pass true to mute the user; pass false to unmute them
toggleGroupCallParticipantIsMuted group_call_id:int32 participant_id:MessageSender is_muted:Bool = Ok;
//@description Changes volume level of a participant of an active group call. If the current user can manage the group call, then the participant's volume level will be changed for all users with the default volume level

View File

@ -1846,9 +1846,8 @@ td_api::object_ptr<td_api::activeStories> StoryManager::get_active_stories_objec
order = active_stories->public_order_;
}
}
return td_api::make_object<td_api::activeStories>(
std::move(list), order, td_->messages_manager_->get_chat_id_object(owner_dialog_id, "get_active_stories_object"),
max_read_story_id.get(), std::move(stories));
return td_api::make_object<td_api::activeStories>(std::move(list), order, max_read_story_id.get(),
std::move(stories));
}
vector<FileId> StoryManager::get_story_file_ids(const Story *story) const {
@ -2422,7 +2421,9 @@ void StoryManager::delete_active_stories_from_story_list(DialogId owner_dialog_i
void StoryManager::send_update_active_stories(DialogId owner_dialog_id) {
send_closure(G()->td(), &Td::send_update,
td_api::make_object<td_api::updateActiveStories>(get_active_stories_object(owner_dialog_id)));
td_api::make_object<td_api::updateActiveStories>(
td_->messages_manager_->get_chat_id_object(owner_dialog_id, "updateActiveStories"),
get_active_stories_object(owner_dialog_id)));
}
bool StoryManager::on_update_read_stories(DialogId owner_dialog_id, StoryId max_read_story_id) {