Update API scheme to layer 164.

This commit is contained in:
John Preston
2023-08-31 12:58:34 +04:00
parent 1bde096417
commit d5b429e910
37 changed files with 586 additions and 358 deletions
@@ -2557,19 +2557,17 @@ void SessionController::openPeerStories(
if (const auto source = stories.source(peerId)) {
if (const auto idDates = source->toOpen()) {
openPeerStory(
source->user,
source->peer,
idDates.id,
(list
? StoriesContext{ *list }
: StoriesContext{ StoriesContextPeer() }));
}
} else if (const auto userId = peerToUser(peerId)) {
if (const auto user = session().data().userLoaded(userId)) {
const auto done = crl::guard(&_storyOpenGuard, [=] {
openPeerStories(peerId, list);
});
stories.requestUserStories(user, done);
}
} else if (const auto peer = session().data().peerLoaded(peerId)) {
const auto done = crl::guard(&_storyOpenGuard, [=] {
openPeerStories(peerId, list);
});
stories.requestPeerStories(peer, done);
}
}