From 71e7af8bc0086d1b1ef216eb5ab8ae545286167b Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 8 Mar 2021 21:08:16 -0800 Subject: [PATCH] Copy content warning when replying --- .../Sources/ViewModels/View Models/NewStatusViewModel.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift b/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift index 5ee1b52..3a7cc24 100644 --- a/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift +++ b/ViewModels/Sources/ViewModels/View Models/NewStatusViewModel.swift @@ -79,6 +79,8 @@ public final class NewStatusViewModel: ObservableObject { .map("@".appending)) compositionViewModel.text = mentions.joined(separator: " ").appending(" ") + compositionViewModel.contentWarning = inReplyTo.spoilerText + compositionViewModel.displayContentWarning = !inReplyTo.spoilerText.isEmpty } else if let directMessageTo = directMessageTo { compositionViewModel.text = directMessageTo.accountName.appending(" ") visibility = .direct