aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-05-02 10:52:57 +0300
committerShpuld Shpuldson <shp@cock.li>2020-05-02 10:52:57 +0300
commit75519223f9a715aacb99d3780ee681089a479292 (patch)
tree32f0810da5ecd92ecf7b60ef7a44729ee74ec408 /src/components/notification/notification.js
parent406fdd8edec210d14589e0ff684a166250236779 (diff)
mark single notifs as seen properly on server
Diffstat (limited to 'src/components/notification/notification.js')
-rw-r--r--src/components/notification/notification.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index 8c20ff09..abe3bebe 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -37,11 +37,11 @@ const Notification = {
approveUser () {
this.$store.state.api.backendInteractor.approveUser({ id: this.user.id })
this.$store.dispatch('removeFollowRequest', this.user)
+ this.$store.dispatch('markSingleNotificationAsSeen', { id: this.notification.id })
this.$store.dispatch('updateNotification', {
id: this.notification.id,
updater: notification => {
notification.type = 'follow'
- notification.seen = true
}
})
},