Clear current article so that wrapping occurs

This commit is contained in:
Maurice Parker 2019-11-24 14:36:17 -06:00
parent 69aeacd98d
commit 74297944e9
1 changed files with 2 additions and 1 deletions

View File

@ -1370,7 +1370,7 @@ private extension SceneCoordinator {
let nextIndexPath = IndexPath(row: j, section: i) let nextIndexPath = IndexPath(row: j, section: i)
guard let node = nodeFor(nextIndexPath), let unreadCountProvider = node.representedObject as? UnreadCountProvider else { guard let node = nodeFor(nextIndexPath), let unreadCountProvider = node.representedObject as? UnreadCountProvider else {
assertionFailure() assertionFailure()
completion(true) completion(false)
return return
} }
@ -1380,6 +1380,7 @@ private extension SceneCoordinator {
if unreadCountProvider.unreadCount > 0 { if unreadCountProvider.unreadCount > 0 {
selectFeed(nextIndexPath, animated: false, deselectArticle: false) { selectFeed(nextIndexPath, animated: false, deselectArticle: false) {
self.currentArticle = nil
completion(true) completion(true)
} }
return return