mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Rename store purge method to purgeAllPosts and add purgeRemotePosts
This commit is contained in:
parent
cb791d137c
commit
e3ed0831e6
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user