Change to check correct unread value to determine timeline button state. Issue #1433

This commit is contained in:
Maurice Parker 2019-12-14 15:29:20 -07:00
parent 45cdb7bea3
commit 1ae421d3c8
1 changed files with 2 additions and 1 deletions

View File

@ -84,6 +84,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
}
}
}
private(set) var groupByFeed = AppDefaults.timelineGroupByFeed {
didSet {
if groupByFeed != oldValue {
@ -266,7 +267,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
}
var isTimelineUnreadAvailable: Bool {
return timelineFeed?.unreadCount ?? 0 > 0
return unreadCount > 0
}
var isAnyUnreadAvailable: Bool {