mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix typo and crash
This commit is contained in:
parent
e341c0f028
commit
e060b91947
@ -466,7 +466,7 @@ final class StoryItemContentComponent: Component {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
var useLegacyImplementation = false
|
var useLegacyImplementation = true
|
||||||
if let data = component.context.currentAppConfiguration.with({ $0 }).data, let value = data["ios_video_legacystoryplayer"] as? Double {
|
if let data = component.context.currentAppConfiguration.with({ $0 }).data, let value = data["ios_video_legacystoryplayer"] as? Double {
|
||||||
useLegacyImplementation = value != 0.0
|
useLegacyImplementation = value != 0.0
|
||||||
}
|
}
|
||||||
|
@ -1875,7 +1875,7 @@ public final class StoryItemSetContainerComponent: Component {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var nextVisibleItem: VisibleItem?
|
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]
|
nextVisibleItem = self.visibleItems[component.slice.allItems[i + 1].id]
|
||||||
}
|
}
|
||||||
if let itemView = visibleItem.view.view as? StoryItemContentComponent.View {
|
if let itemView = visibleItem.view.view as? StoryItemContentComponent.View {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user