mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Take first item for expansion
This commit is contained in:
parent
e20b505b4a
commit
221dd466fa
@ -797,7 +797,11 @@ public final class StoryPeerListComponent: Component {
|
||||
|
||||
var overscrollFocusIndex: Int?
|
||||
for i in 0 ..< self.sortedItems.count {
|
||||
if self.sortedItems[i].peer.id != component.context.account.peerId {
|
||||
if self.sortedItems[i].peer.id == component.context.account.peerId {
|
||||
continue
|
||||
}
|
||||
let itemFrame = itemLayout.frame(at: i)
|
||||
if effectiveVisibleBounds.contains(itemFrame) {
|
||||
overscrollFocusIndex = i
|
||||
break
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user