From efbb32648cab53e199daaded4a821df45ead3090 Mon Sep 17 00:00:00 2001 From: CMK Date: Thu, 1 Apr 2021 14:54:15 +0800 Subject: [PATCH] chore: update naming for StatusFetchedResultsController --- .../StatusFetchedResultsController.swift | 4 ++-- Mastodon/Scene/Profile/Timeline/UserTimelineViewModel.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mastodon/Diffiable/FetchedResultsController/StatusFetchedResultsController.swift b/Mastodon/Diffiable/FetchedResultsController/StatusFetchedResultsController.swift index 704f2ab78..a61429ab8 100644 --- a/Mastodon/Diffiable/FetchedResultsController/StatusFetchedResultsController.swift +++ b/Mastodon/Diffiable/FetchedResultsController/StatusFetchedResultsController.swift @@ -23,7 +23,7 @@ final class StatusFetchedResultsController: NSObject { let statusIDs = CurrentValueSubject<[Mastodon.Entity.Status.ID], Never>([]) // output - let items = CurrentValueSubject<[NSManagedObjectID], Never>([]) + let objectIDs = CurrentValueSubject<[NSManagedObjectID], Never>([]) init(managedObjectContext: NSManagedObjectContext, domain: String?, additionalTweetPredicate: NSPredicate) { self.domain.value = domain ?? "" @@ -81,6 +81,6 @@ extension StatusFetchedResultsController: NSFetchedResultsControllerDelegate { } .sorted { $0.0 < $1.0 } .map { $0.1.objectID } - self.items.value = items + self.objectIDs.value = items } } diff --git a/Mastodon/Scene/Profile/Timeline/UserTimelineViewModel.swift b/Mastodon/Scene/Profile/Timeline/UserTimelineViewModel.swift index de17376d2..a550dc829 100644 --- a/Mastodon/Scene/Profile/Timeline/UserTimelineViewModel.swift +++ b/Mastodon/Scene/Profile/Timeline/UserTimelineViewModel.swift @@ -60,7 +60,7 @@ class UserTimelineViewModel: NSObject { .store(in: &disposeBag) - statusFetchedResultsController.items + statusFetchedResultsController.objectIDs .receive(on: DispatchQueue.main) .sink { [weak self] objectIDs in guard let self = self else { return }