2021-04-13 13:46:42 +02:00
|
|
|
//
|
|
|
|
// CachedThreadViewModel.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by MainasuK Cirno on 2021-4-12.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import CoreDataStack
|
|
|
|
|
|
|
|
final class CachedThreadViewModel: ThreadViewModel {
|
|
|
|
init(context: AppContext, status: Status) {
|
2022-01-27 14:23:39 +01:00
|
|
|
let threadContext = StatusItem.Thread.Context(status: .init(objectID: status.objectID))
|
|
|
|
super.init(
|
|
|
|
context: context,
|
|
|
|
optionalRoot: .root(context: threadContext)
|
|
|
|
)
|
2021-04-13 13:46:42 +02:00
|
|
|
}
|
|
|
|
}
|