Rename store purge method to purgeAllPosts and add purgeRemotePosts

This commit is contained in:
Angelo Stavrow 2020-08-26 16:40:20 -04:00
parent cb791d137c
commit e3ed0831e6
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -11,7 +11,11 @@ struct PostStore {
posts.append(post)
}
mutating func purge() {
mutating func purgeAllPosts() {
posts = []
}
mutating func purgeRemotePosts() {
posts = posts.filter { $0.wfPost.postId == nil }
}
}