Skip to content

Commit

Permalink
Enable async saving for post settings for pending posts
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 24, 2024
1 parent 8ded263 commit b59394d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ extension PostSettingsViewController {
Task { @MainActor in
do {
let coordinator = PostCoordinator.shared
if apost.original().status == .draft {
if coordinator.isSyncAllowed(for: apost) {
coordinator.setNeedsSync(for: apost)
} else {
try await coordinator._save(apost)
Expand Down

0 comments on commit b59394d

Please sign in to comment.