From 1ae421d3c843542807645140f249cb96335f590c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 14 Dec 2019 15:29:20 -0700 Subject: [PATCH] Change to check correct unread value to determine timeline button state. Issue #1433 --- iOS/SceneCoordinator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index f3cc3a57f..917677981 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -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 {