Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F13831171
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
609 B
Subscribers
None
View Options
diff --git a/Shared/Models/PostStore.swift b/Shared/Models/PostStore.swift
index e7935fe..8e4d288 100644
--- a/Shared/Models/PostStore.swift
+++ b/Shared/Models/PostStore.swift
@@ -1,17 +1,21 @@
import Foundation
struct PostStore {
var posts: [Post]
init(posts: [Post] = []) {
self.posts = posts
}
mutating func add(_ post: Post) {
posts.append(post)
}
- mutating func purge() {
+ mutating func purgeAllPosts() {
posts = []
}
+
+ mutating func purgeRemotePosts() {
+ posts = posts.filter { $0.wfPost.postId == nil }
+ }
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, Feb 20, 7:47 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3633807
Attached To
rWFSUI WriteFreely SwiftUI
Event Timeline
Log In to Comment