Conform to similar test as iOS app for showing server reload UI

This commit is contained in:
Angelo Stavrow 2020-11-23 14:57:51 -05:00
parent 486b2ce0fe
commit 2078eb7199
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -36,8 +36,8 @@ struct PostEditorView: View {
}
}
.onChange(of: post.hasNewerRemoteCopy, perform: { _ in
if post.status == PostStatus.edited.rawValue && !post.hasNewerRemoteCopy {
post.status = PostStatus.published.rawValue
if !post.hasNewerRemoteCopy {
self.updatingFromServer = true
}
})
.onDisappear(perform: {