Fix typo and crash

This commit is contained in:
Isaac 2025-04-29 17:36:16 +02:00
parent e341c0f028
commit e060b91947
2 changed files with 2 additions and 2 deletions

View File

@ -466,7 +466,7 @@ final class StoryItemContentComponent: Component {
return
}
var useLegacyImplementation = false
var useLegacyImplementation = true
if let data = component.context.currentAppConfiguration.with({ $0 }).data, let value = data["ios_video_legacystoryplayer"] as? Double {
useLegacyImplementation = value != 0.0
}

View File

@ -1875,7 +1875,7 @@ public final class StoryItemSetContainerComponent: Component {
continue
}
var nextVisibleItem: VisibleItem?
if i != component.slice.allItems.count {
if i != component.slice.allItems.count - 1 {
nextVisibleItem = self.visibleItems[component.slice.allItems[i + 1].id]
}
if let itemView = visibleItem.view.view as? StoryItemContentComponent.View {