Fix redraft visibility

This commit is contained in:
Justin Mazzocchi 2021-03-01 14:38:05 -08:00
parent aa8bbf6dcd
commit 2f656f77ac
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -35,7 +35,9 @@ public final class NewStatusViewModel: ObservableObject {
self.environment = environment self.environment = environment
inReplyToViewModel = inReplyTo inReplyToViewModel = inReplyTo
events = eventsSubject.eraseToAnyPublisher() events = eventsSubject.eraseToAnyPublisher()
visibility = inReplyTo?.visibility ?? identityContext.identity.preferences.postingDefaultVisibility visibility = redraft?.visibility
?? inReplyTo?.visibility
?? identityContext.identity.preferences.postingDefaultVisibility
if let inReplyTo = inReplyTo { if let inReplyTo = inReplyTo {
switch inReplyTo.visibility { switch inReplyTo.visibility {