Implement unfollow, unlike, unrepost

This commit is contained in:
Paul Frazee
2022-09-23 09:47:21 -05:00
parent 3269f048b3
commit d954f6d905
6 changed files with 61 additions and 41 deletions
+1 -3
View File
@@ -74,9 +74,7 @@ export class ProfileViewModel {
throw new Error('Not logged in')
}
if (this.myState.follow) {
await apilib.unfollow(this.rootStore.api, this.rootStore.me.did, {
did: this.did,
})
await apilib.unfollow(this.rootStore.api, this.myState.follow)
runInAction(() => {
this.followersCount--
this.myState.follow = undefined