Update API scheme.

This commit is contained in:
John Preston 2023-12-13 21:30:17 +00:00
parent 4b9648d8d9
commit 2b960a1f21
2 changed files with 12 additions and 8 deletions

View file

@ -1379,12 +1379,16 @@ void Stories::sendViewsSliceRequest() {
_owner->processUsers(data.vusers());
slice.list.reserve(data.vviews().v.size());
for (const auto &view : data.vviews().v) {
slice.list.push_back({
.peer = _owner->peer(peerFromUser(view.data().vuser_id())),
.reaction = (view.data().vreaction()
? ReactionFromMTP(*view.data().vreaction())
: Data::ReactionId()),
.date = view.data().vdate().v,
view.match([&](const MTPDstoryView &data) {
slice.list.push_back({
.peer = _owner->peer(peerFromUser(data.vuser_id())),
.reaction = (data.vreaction()
? ReactionFromMTP(*data.vreaction())
: Data::ReactionId()),
.date = data.vdate().v,
});
}, [](const auto &) {
});
}
const auto fullId = FullStoryId{

View file

@ -1555,8 +1555,8 @@ stories.allStories#6efc5e81 flags:# has_more:flags.0?true count:int state:string
stories.stories#5dd8c3c8 count:int stories:Vector<StoryItem> chats:Vector<Chat> users:Vector<User> = stories.Stories;
storyView#b0bdeac5 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true user_id:long date:int reaction:flags.2?Reaction = StoryView;
//storyViewPublicForward#9083670b flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true message:Message = StoryView;
//storyViewPublicRepost#bd74cf49 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true peer_id:Peer story:StoryItem = StoryView;
storyViewPublicForward#9083670b flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true message:Message = StoryView;
storyViewPublicRepost#bd74cf49 flags:# blocked:flags.0?true blocked_my_stories_from:flags.1?true peer_id:Peer story:StoryItem = StoryView;
stories.storyViewsList#19a16886 flags:# count:int views_count:int forwards_count:int reactions_count:int views:Vector<StoryView> users:Vector<User> next_offset:flags.0?string = stories.StoryViewsList;