Implement unfollow, unlike, unrepost
This commit is contained in:
parent
aabde2b401
commit
a8c8286b88
6 changed files with 61 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue