Fix build

This commit is contained in:
Ali 2021-03-09 20:41:43 +04:00
parent 58107dda11
commit b212d21185
2 changed files with 7 additions and 3 deletions

View File

@ -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) 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 #endif

View File

@ -1742,7 +1742,9 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
} }
index -= 1 index -= 1
} }
viewControllers.remove(atOffsets: IndexSet(indexesToRemove)) for i in indexesToRemove.sorted().reversed() {
viewControllers.remove(at: i)
}
navigationController.setViewControllers(viewControllers, animated: false) navigationController.setViewControllers(viewControllers, animated: false)
})) }))
} }
@ -1882,7 +1884,9 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
} }
index -= 1 index -= 1
} }
viewControllers.remove(atOffsets: IndexSet(indexesToRemove)) for i in indexesToRemove.sorted().reversed() {
viewControllers.remove(at: i)
}
navigationController.setViewControllers(viewControllers, animated: false) navigationController.setViewControllers(viewControllers, animated: false)
})) }))
} }