mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 13:38:21 +00:00
Fix build
This commit is contained in:
parent
58107dda11
commit
b212d21185
@ -865,7 +865,7 @@ private final class ChatListViewSpaceState {
|
||||
|
||||
let loadedEntries = postbox.chatListTable.entries(groupId: .root, from: (allEntries[0].index.predecessor, true), to: (allEntries[allEntries.count - 1].index.successor, true), peerChatInterfaceStateTable: postbox.peerChatInterfaceStateTable, count: 1000, predicate: nil).map(mapEntry)
|
||||
|
||||
assert(loadedEntries.map({ $0.index }) == allEntries.map({ $0.index }))
|
||||
//assert(loadedEntries.map({ $0.index }) == allEntries.map({ $0.index }))
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -1742,7 +1742,9 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
|
||||
}
|
||||
index -= 1
|
||||
}
|
||||
viewControllers.remove(atOffsets: IndexSet(indexesToRemove))
|
||||
for i in indexesToRemove.sorted().reversed() {
|
||||
viewControllers.remove(at: i)
|
||||
}
|
||||
navigationController.setViewControllers(viewControllers, animated: false)
|
||||
}))
|
||||
}
|
||||
@ -1882,7 +1884,9 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
|
||||
}
|
||||
index -= 1
|
||||
}
|
||||
viewControllers.remove(atOffsets: IndexSet(indexesToRemove))
|
||||
for i in indexesToRemove.sorted().reversed() {
|
||||
viewControllers.remove(at: i)
|
||||
}
|
||||
navigationController.setViewControllers(viewControllers, animated: false)
|
||||
}))
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user