Don't open stories twice

This commit is contained in:
Ali 2023-07-11 20:00:46 +04:00
parent 6ec1f4c680
commit 441978fbad
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "smoothGradient.png",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -4113,6 +4113,7 @@ final class PeerInfoScreenNode: ViewControllerTracingNode, PeerInfoScreenNodePro
if let expiringStoryList = self.expiringStoryList, let expiringStoryListState = self.expiringStoryListState, !expiringStoryListState.items.isEmpty {
if fromAvatar {
StoryContainerScreen.openPeerStories(context: self.context, peerId: self.peerId, parentController: controller, avatarNode: self.headerNode.avatarListNode.avatarContainerNode.avatarNode)
return
}
let _ = expiringStoryList