From 2f656f77acdc31c71ba3964a90dcf67ed157e14d Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 1 Mar 2021 14:38:05 -0800 Subject: [PATCH] Fix redraft visibility --- .../Sources/ViewModels/View Models/NewStatusViewModel.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift b/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift index ebeb688..2b13f82 100644 --- a/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift +++ b/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift @@ -35,7 +35,9 @@ public final class NewStatusViewModel: ObservableObject { self.environment = environment inReplyToViewModel = inReplyTo events = eventsSubject.eraseToAnyPublisher() - visibility = inReplyTo?.visibility ?? identityContext.identity.preferences.postingDefaultVisibility + visibility = redraft?.visibility + ?? inReplyTo?.visibility + ?? identityContext.identity.preferences.postingDefaultVisibility if let inReplyTo = inReplyTo { switch inReplyTo.visibility {