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:
parent
f99f25bfdb
commit
2e4c1c81ed
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user