Update user content on launch if logged in

This commit is contained in:
Angelo Stavrow 2020-08-31 16:37:55 -04:00
parent 4ae66e1585
commit b21cef6a54
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE

View File

@ -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()
}
}
}