Skip to content

Commit 17df575

Browse files
author
Isaac
committed
Revert "Fix typo and crash"
This reverts commit e060b91.
1 parent c37c825 commit 17df575

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemContentComponent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ final class StoryItemContentComponent: Component {
466466
return
467467
}
468468

469-
var useLegacyImplementation = true
469+
var useLegacyImplementation = false
470470
if let data = component.context.currentAppConfiguration.with({ $0 }).data, let value = data["ios_video_legacystoryplayer"] as? Double {
471471
useLegacyImplementation = value != 0.0
472472
}

submodules/TelegramUI/Components/Stories/StoryContainerScreen/Sources/StoryItemSetContainerComponent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,7 @@ public final class StoryItemSetContainerComponent: Component {
18751875
continue
18761876
}
18771877
var nextVisibleItem: VisibleItem?
1878-
if i != component.slice.allItems.count - 1 {
1878+
if i != component.slice.allItems.count {
18791879
nextVisibleItem = self.visibleItems[component.slice.allItems[i + 1].id]
18801880
}
18811881
if let itemView = visibleItem.view.view as? StoryItemContentComponent.View {

0 commit comments

Comments
 (0)