mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 17:57:51 +00:00
Update API scheme to layer 164.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user