Clear current article so that wrapping occurs
This commit is contained in:
parent
69aeacd98d
commit
74297944e9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue