Don't purge local posts indiscriminately

This commit is contained in:
Angelo Stavrow 2020-08-27 15:43:54 -04:00
parent 66790e7933
commit 00373e5a80
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
2 changed files with 0 additions and 5 deletions

View File

@ -14,8 +14,4 @@ struct PostStore {
mutating func purgeAllPosts() {
posts = []
}
mutating func purgeRemotePosts() {
posts = posts.filter { $0.wfPost.postId == nil }
}
}

View File

@ -145,7 +145,6 @@ struct PostListView: View {
private func reloadFromServer() {
DispatchQueue.main.async {
model.store.purgeRemotePosts()
model.collections.clearUserCollection()
model.fetchUserCollections()
model.fetchUserPosts()