aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-05-02 11:51:39 +0300
committerShpuld Shpuldson <shp@cock.li>2020-05-02 16:21:46 +0300
commitb095d2e17e03189adb62227da95ca5431bc64f5a (patch)
treeb9f35e9f215256b2efd43bdd199bbd5916c0257a /src/components/notification
parent20b53d58b753075bb1bda49d0595eba02ed5f755 (diff)
don't dismiss a rejected follow request on server
Diffstat (limited to 'src/components/notification')
-rw-r--r--src/components/notification/notification.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index abe3bebe..1ae81ce4 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -47,8 +47,10 @@ const Notification = {
},
denyUser () {
this.$store.state.api.backendInteractor.denyUser({ id: this.user.id })
- this.$store.dispatch('removeFollowRequest', this.user)
- this.$store.dispatch('dismissNotification', { id: this.notification.id })
+ .then(() => {
+ this.$store.dispatch('dismissNotificationLocal', { id: this.notification.id })
+ this.$store.dispatch('removeFollowRequest', this.user)
+ })
}
},
computed: {