aboutsummaryrefslogtreecommitdiff
path: root/src/components/follow_request_card/follow_request_card.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/follow_request_card/follow_request_card.js')
-rw-r--r--src/components/follow_request_card/follow_request_card.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/follow_request_card/follow_request_card.js b/src/components/follow_request_card/follow_request_card.js
index 33e2699e..cbd75311 100644
--- a/src/components/follow_request_card/follow_request_card.js
+++ b/src/components/follow_request_card/follow_request_card.js
@@ -27,11 +27,12 @@ const FollowRequestCard = {
})
},
denyUser () {
- this.$store.state.api.backendInteractor.denyUser({ id: this.user.id })
- this.$store.dispatch('removeFollowRequest', this.user)
-
const notifId = this.findFollowRequestNotificationId()
- this.$store.dispatch('dismissNotification', { id: notifId })
+ this.$store.state.api.backendInteractor.denyUser({ id: this.user.id })
+ .then(() => {
+ this.$store.dispatch('dismissNotificationLocal', { id: notifId })
+ this.$store.dispatch('removeFollowRequest', this.user)
+ })
}
}
}