Fix bug that caused currently selected item to not be found on next unread

This commit is contained in:
Maurice Parker 2020-07-26 16:00:00 -05:00
parent 2efc0a17a9
commit 4c1061cfba
2 changed files with 4 additions and 1 deletions

View File

@ -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] {

View File

@ -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