aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.js
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 11:51:39 +0300
commit92ccaa97bb0a2c15b96e2fbcf03823ba902dc516 (patch)
treefb6b7307cbb3785ae0b1da17fe7b1ac730e9965f /src/components/notification/notification.js
parent75519223f9a715aacb99d3780ee681089a479292 (diff)
don't dismiss a rejected follow request on server
Diffstat (limited to 'src/components/notification/notification.js')
-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: {