mastodon-ios/Mastodon/Scene/Thread/CachedThreadViewModel.swift

22 lines
544 B
Swift
Raw Normal View History

2021-04-13 13:46:42 +02:00
//
// CachedThreadViewModel.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021-4-12.
//
import Foundation
import CoreDataStack
2022-10-08 07:43:06 +02:00
import MastodonCore
2021-04-13 13:46:42 +02:00
final class CachedThreadViewModel: ThreadViewModel {
init(context: AppContext, authContext: AuthContext, status: Status) {
let threadContext = StatusItem.Thread.Context(status: .init(objectID: status.objectID))
super.init(
context: context,
authContext: authContext,
optionalRoot: .root(context: threadContext)
)
2021-04-13 13:46:42 +02:00
}
}