Fix bug that caused currently selected item to not be found on next unread
This commit is contained in:
parent
2efc0a17a9
commit
4c1061cfba
|
@ -26,6 +26,10 @@ struct SidebarExpandedContainers {
|
|||
}
|
||||
}
|
||||
|
||||
func contains(_ containerID: ContainerIdentifier) -> Bool {
|
||||
return expandedTable.keys.contains(containerID)
|
||||
}
|
||||
|
||||
subscript(_ containerID: ContainerIdentifier) -> Bool {
|
||||
get {
|
||||
if let result = expandedTable[containerID] {
|
||||
|
|
|
@ -289,7 +289,6 @@ private extension SidebarModel {
|
|||
section.visit { sidebarItem in
|
||||
if !foundStartFeed && sidebarItem.feed?.feedID == startingAt.feedID {
|
||||
foundStartFeed = true
|
||||
return false
|
||||
}
|
||||
if foundStartFeed && sidebarItem.unreadCount > 0 {
|
||||
nextSidebarItem = sidebarItem
|
||||
|
|
Loading…
Reference in New Issue