mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Remove debugging
This commit is contained in:
parent
caaf905f66
commit
d5acba215b
@ -951,6 +951,7 @@ public final class SparseItemGrid: ASDisplayNode {
|
|||||||
var updateLayers: [SparseItemGridDisplayItem] = []
|
var updateLayers: [SparseItemGridDisplayItem] = []
|
||||||
|
|
||||||
let visibleRange = layout.visibleItemRange(for: visibleBounds, count: items.count)
|
let visibleRange = layout.visibleItemRange(for: visibleBounds, count: items.count)
|
||||||
|
if visibleRange.maxIndex >= visibleRange.minIndex {
|
||||||
for index in visibleRange.minIndex ... visibleRange.maxIndex {
|
for index in visibleRange.minIndex ... visibleRange.maxIndex {
|
||||||
if let item = items.item(at: index) {
|
if let item = items.item(at: index) {
|
||||||
let itemFrame = layout.frame(at: index)
|
let itemFrame = layout.frame(at: index)
|
||||||
@ -1010,6 +1011,7 @@ public final class SparseItemGrid: ASDisplayNode {
|
|||||||
usedPlaceholderCount += 1
|
usedPlaceholderCount += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if !bindItems.isEmpty {
|
if !bindItems.isEmpty {
|
||||||
items.itemBinding.bindLayers(items: bindItems, layers: bindLayers, size: layout.containerLayout.size, insets: layout.containerLayout.insets, synchronous: synchronous)
|
items.itemBinding.bindLayers(items: bindItems, layers: bindLayers, size: layout.containerLayout.size, insets: layout.containerLayout.insets, synchronous: synchronous)
|
||||||
|
@ -148,7 +148,7 @@ final class StoryItemContentComponent: Component {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if case let .file(file) = currentMessageMedia, let peerReference = PeerReference(component.peer._asPeer()), !"".isEmpty {
|
if case let .file(file) = currentMessageMedia, let peerReference = PeerReference(component.peer._asPeer()) {
|
||||||
if self.videoNode == nil {
|
if self.videoNode == nil {
|
||||||
let videoNode = UniversalVideoNode(
|
let videoNode = UniversalVideoNode(
|
||||||
postbox: component.context.account.postbox,
|
postbox: component.context.account.postbox,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user