Revert "Fix typo and crash"

This reverts commit e060b91947a0b3bbb6109bccfd87f202503ceb6f.
This commit is contained in:
Isaac 2025-05-05 22:20:06 +02:00
parent c37c825333
commit 17df575f54
2 changed files with 2 additions and 2 deletions

View File

@ -466,7 +466,7 @@ final class StoryItemContentComponent: Component {
return
}
var useLegacyImplementation = true
var useLegacyImplementation = false
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 - 1 {
if i != component.slice.allItems.count {
nextVisibleItem = self.visibleItems[component.slice.allItems[i + 1].id]
}
if let itemView = visibleItem.view.view as? StoryItemContentComponent.View {