From ff6698c12df470e723103efa70c0de83723c519a Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Mon, 12 Sep 2022 22:37:03 -0700 Subject: [PATCH] set linkIsActive on audio session article open --- apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift | 1 + apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewModel.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift index 14e2e127b..6bd26fbdc 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewIOS.swift @@ -112,6 +112,7 @@ import Views guard let linkedItem = dataService.viewContext.object(with: objectID) as? LinkedItem else { return } viewModel.pushFeedItem(item: linkedItem) viewModel.selectedItem = linkedItem + viewModel.linkIsActive = true } .onReceive(NSNotification.pushReaderItemPublisher) { notification in if let objectID = notification.userInfo?["objectID"] as? NSManagedObjectID { diff --git a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewModel.swift b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewModel.swift index a298d118a..3e38eb961 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewModel.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Home/HomeFeedViewModel.swift @@ -39,6 +39,7 @@ import Views func handleReaderItemNotification(objectID: NSManagedObjectID, dataService: DataService) { selectedItem = dataService.viewContext.object(with: objectID) as? LinkedItem + linkIsActive = true } var cursor: String?