chore: update comment

This commit is contained in:
CMK 2021-08-03 17:19:12 +08:00
parent 48ac5d13b0
commit 1320425564
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ final class ComposeViewModel: NSObject {
self.selectedStatusVisibility = { self.selectedStatusVisibility = {
// default private when user locked // default private when user locked
var visibility: ComposeToolbarView.VisibilitySelectionType = context.authenticationService.activeMastodonAuthentication.value?.user.locked == true ? .private : .public var visibility: ComposeToolbarView.VisibilitySelectionType = context.authenticationService.activeMastodonAuthentication.value?.user.locked == true ? .private : .public
// set visibility is replied post is DM // set visibility for reply post
switch composeKind { switch composeKind {
case .reply(let repliedToStatusObjectID): case .reply(let repliedToStatusObjectID):
context.managedObjectContext.performAndWait { context.managedObjectContext.performAndWait {