Improve documentation.

This commit is contained in:
levlam 2023-06-30 18:57:16 +03:00
parent a210f47062
commit 7981c4086d
2 changed files with 1 additions and 4 deletions

View File

@ -4956,7 +4956,7 @@ storyInfo story_id:int32 date:int32 = StoryInfo;
//@description Describes active stories sent by the same sender //@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 from a current user's contact //@list Identifier of the story list in which the stories are shown; may be null if the stories aren't from a current user's contact
//@order A parameter used to determine order of the stories in the story list. Stories must be sorted by the pair (order, story_sender_chat_id) in descending order //@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
//@story_sender_chat_id Identifier of the sender of the stories //@story_sender_chat_id Identifier of the sender of the stories
//@max_read_story_id Identifier of the last read active story //@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) //@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)

View File

@ -5909,9 +5909,6 @@ bool ContactsManager::get_channel_has_protected_content(ChannelId channel_id) co
} }
bool ContactsManager::get_user_stories_hidden(UserId user_id) const { bool ContactsManager::get_user_stories_hidden(UserId user_id) const {
if (user_id == get_my_id()) {
return false;
}
auto u = get_user(user_id); auto u = get_user(user_id);
if (u == nullptr) { if (u == nullptr) {
return false; return false;