mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-28 16:20:10 +01:00
Fix typos
This commit is contained in:
parent
90a6da9610
commit
a36a303532
@ -52,7 +52,7 @@ final class AccountListViewModel: NSObject {
|
||||
mastodonAuthenticationFetchedResultsController.delegate = self
|
||||
do {
|
||||
try mastodonAuthenticationFetchedResultsController.performFetch()
|
||||
authentications = mastodonAuthenticationFetchedResultsController.fetchedObjects?.compactMap { $0.asRecrod } ?? []
|
||||
authentications = mastodonAuthenticationFetchedResultsController.fetchedObjects?.compactMap { $0.asRecord } ?? []
|
||||
} catch {
|
||||
assertionFailure(error.localizedDescription)
|
||||
}
|
||||
@ -183,7 +183,7 @@ extension AccountListViewModel: NSFetchedResultsControllerDelegate {
|
||||
return
|
||||
}
|
||||
|
||||
authentications = mastodonAuthenticationFetchedResultsController.fetchedObjects?.compactMap { $0.asRecrod } ?? []
|
||||
authentications = mastodonAuthenticationFetchedResultsController.fetchedObjects?.compactMap { $0.asRecord } ?? []
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -540,7 +540,7 @@ extension ProfileViewController {
|
||||
let composeViewModel = ComposeViewModel(
|
||||
context: context,
|
||||
authContext: viewModel.authContext,
|
||||
kind: .mention(user: mastodonUser.asRecrod)
|
||||
kind: .mention(user: mastodonUser.asRecord)
|
||||
)
|
||||
_ = coordinator.present(scene: .compose(viewModel: composeViewModel), from: self, transition: .modal(animated: true, completion: nil))
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ public class ManagedObjectRecord<T: NSFetchRequestResult>: Hashable {
|
||||
}
|
||||
|
||||
extension Managed where Self: NSManagedObject {
|
||||
public var asRecrod: ManagedObjectRecord<Self> {
|
||||
public var asRecord: ManagedObjectRecord<Self> {
|
||||
return .init(objectID: objectID)
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ public final class AuthenticationService: NSObject {
|
||||
try mastodonAuthenticationFetchedResultsController.performFetch()
|
||||
mastodonAuthentications = mastodonAuthenticationFetchedResultsController.fetchedObjects?
|
||||
.sorted(by: { $0.activedAt > $1.activedAt })
|
||||
.compactMap { $0.asRecrod } ?? []
|
||||
.compactMap { $0.asRecord } ?? []
|
||||
} catch {
|
||||
assertionFailure(error.localizedDescription)
|
||||
}
|
||||
@ -148,7 +148,7 @@ extension AuthenticationService: NSFetchedResultsControllerDelegate {
|
||||
|
||||
mastodonAuthentications = mastodonAuthenticationFetchedResultsController.fetchedObjects?
|
||||
.sorted(by: { $0.activedAt > $1.activedAt })
|
||||
.compactMap { $0.asRecrod } ?? []
|
||||
.compactMap { $0.asRecord } ?? []
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -472,7 +472,7 @@ extension ComposeContentViewModel {
|
||||
let managedObjectContext = self.context.managedObjectContext
|
||||
var _author: ManagedObjectRecord<MastodonUser>?
|
||||
managedObjectContext.performAndWait {
|
||||
_author = authContext.mastodonAuthenticationBox.authenticationRecord.object(in: managedObjectContext)?.user.asRecrod
|
||||
_author = authContext.mastodonAuthenticationBox.authenticationRecord.object(in: managedObjectContext)?.user.asRecord
|
||||
}
|
||||
guard let author = _author else {
|
||||
throw AppError.badAuthentication
|
||||
|
Loading…
x
Reference in New Issue
Block a user