Fix initial sidebar load - selected item wasn't getting reloaded correctly

This commit is contained in:
Maurice Parker 2021-11-18 12:25:43 -06:00
parent 89e899c5d7
commit 1bc46f1251
1 changed files with 2 additions and 2 deletions

View File

@ -2245,7 +2245,7 @@ private extension SceneCoordinator {
guard let smartFeed = SmartFeedsController.shared.find(by: feedIdentifier) else { return } guard let smartFeed = SmartFeedsController.shared.find(by: feedIdentifier) else { return }
markExpanded(SmartFeedsController.shared) markExpanded(SmartFeedsController.shared)
rebuildBackingStores(completion: { rebuildBackingStores(initialLoad: true, completion: {
self.treeControllerDelegate.resetFilterExceptions() self.treeControllerDelegate.resetFilterExceptions()
if let indexPath = self.indexPathFor(smartFeed) { if let indexPath = self.indexPathFor(smartFeed) {
self.selectFeed(indexPath: indexPath) { self.selectFeed(indexPath: indexPath) {
@ -2265,7 +2265,7 @@ private extension SceneCoordinator {
markExpanded(account) markExpanded(account)
rebuildBackingStores(completion: { rebuildBackingStores(initialLoad: true, completion: {
self.treeControllerDelegate.resetFilterExceptions() self.treeControllerDelegate.resetFilterExceptions()
if let folderNode = self.findFolderNode(folderName: folderName, beginningAt: accountNode), let indexPath = self.indexPathFor(folderNode) { if let folderNode = self.findFolderNode(folderName: folderName, beginningAt: accountNode), let indexPath = self.indexPathFor(folderNode) {