CachedThreadViewModel.swift 544 B

12345678910111213141516171819202122
  1. //
  2. // CachedThreadViewModel.swift
  3. // Mastodon
  4. //
  5. // Created by MainasuK Cirno on 2021-4-12.
  6. //
  7. import Foundation
  8. import CoreDataStack
  9. import MastodonCore
  10. final class CachedThreadViewModel: ThreadViewModel {
  11. init(context: AppContext, authContext: AuthContext, status: Status) {
  12. let threadContext = StatusItem.Thread.Context(status: .init(objectID: status.objectID))
  13. super.init(
  14. context: context,
  15. authContext: authContext,
  16. optionalRoot: .root(context: threadContext)
  17. )
  18. }
  19. }