mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Update user content on launch if logged in
This commit is contained in:
parent
4ae66e1585
commit
b21cef6a54
@ -42,6 +42,9 @@ class WriteFreelyModel: ObservableObject {
|
||||
self.account.login(WFUser(token: token, username: self.account.username))
|
||||
self.client = WFClient(for: serverURL)
|
||||
self.client?.user = self.account.user
|
||||
self.collections.clearUserCollection()
|
||||
self.fetchUserCollections()
|
||||
self.fetchUserPosts()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user