mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Don't purge local posts indiscriminately
This commit is contained in:
parent
66790e7933
commit
00373e5a80
@ -14,8 +14,4 @@ struct PostStore {
|
||||
mutating func purgeAllPosts() {
|
||||
posts = []
|
||||
}
|
||||
|
||||
mutating func purgeRemotePosts() {
|
||||
posts = posts.filter { $0.wfPost.postId == nil }
|
||||
}
|
||||
}
|
||||
|
@ -145,7 +145,6 @@ struct PostListView: View {
|
||||
|
||||
private func reloadFromServer() {
|
||||
DispatchQueue.main.async {
|
||||
model.store.purgeRemotePosts()
|
||||
model.collections.clearUserCollection()
|
||||
model.fetchUserCollections()
|
||||
model.fetchUserPosts()
|
||||
|
Loading…
Reference in New Issue
Block a user