From 4d37cae4bfcd7b882d44e409cdf8366a2291008f Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Wed, 4 Nov 2020 14:48:59 -0500 Subject: [PATCH] Save changes to local store when post status changes --- iOS/PostEditor/PostEditorView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iOS/PostEditor/PostEditorView.swift b/iOS/PostEditor/PostEditorView.swift index c29f796..e5dfbd7 100644 --- a/iOS/PostEditor/PostEditorView.swift +++ b/iOS/PostEditor/PostEditorView.swift @@ -142,6 +142,9 @@ struct PostEditorView: View { } else { self.model.editor.clearLastDraft() } + DispatchQueue.main.async { + LocalStorageManager().saveContext() + } }) .onAppear(perform: { self.selectedCollection = collections.first { $0.alias == post.collectionAlias }