1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-23 23:46:56 +01:00

fix: notification data provider not set fetch batch size issue

This commit is contained in:
CMK 2021-07-12 19:20:00 +08:00
parent f99f25bfdb
commit 2e4c1c81ed

View File

@ -75,6 +75,7 @@ final class NotificationViewModel: NSObject {
self.fetchedResultsController = {
let fetchRequest = MastodonNotification.sortedFetchRequest
fetchRequest.returnsObjectsAsFaults = false
fetchRequest.fetchBatchSize = 10
fetchRequest.relationshipKeyPathsForPrefetching = [#keyPath(MastodonNotification.status), #keyPath(MastodonNotification.account)]
let controller = NSFetchedResultsController(
fetchRequest: fetchRequest,