Skip expanded folders when going to the next unread, matching iOS. Fixes #2946.

This commit is contained in:
Brent Simmons committed 2026-07-27 18:03:33 -07:00
1 parent bbd158f799
commit be1965c87c
1 file changed
+2 -4
@@ -753,11 +753,9 @@ private extension SidebarViewController {
}
func shouldSkipRow(_ row: Int) -> Bool {
let skipExpandedFolders = UserDefaults.standard.bool(forKey: "JalkutRespectFolderExpansionOnNextUnread")
// Skip group items, because they should never be selected.
// Skip expanded folders only if Jalkut's pref is enabled.
if rowIsGroupItem(row) || (skipExpandedFolders && rowIsExpandedFolder(row)) {
// Skip expanded folders — go to the feeds inside instead.
if rowIsGroupItem(row) || rowIsExpandedFolder(row) {
return true
}
return false