aboutsummaryrefslogtreecommitdiff
path: root/src/components
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 16:21:46 +0300
commit20b53d58b753075bb1bda49d0595eba02ed5f755 (patch)
tree3618f5ff455bfefe0507557cf5d0fe2eda8e504d /src/components
parent36dcfa8cc1315be65a47c041a8c926ff961b3ae4 (diff)
mark single notifs as seen properly on server
Diffstat (limited to 'src/components')
-rw-r--r--src/components/follow_request_card/follow_request_card.js2
-rw-r--r--src/components/notification/notification.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/follow_request_card/follow_request_card.js b/src/components/follow_request_card/follow_request_card.js
index 2a9d3db5..33e2699e 100644
--- a/src/components/follow_request_card/follow_request_card.js
+++ b/src/components/follow_request_card/follow_request_card.js
@@ -18,11 +18,11 @@ const FollowRequestCard = {
this.$store.dispatch('removeFollowRequest', this.user)
const notifId = this.findFollowRequestNotificationId()
+ this.$store.dispatch('markSingleNotificationAsSeen', { id: notifId })
this.$store.dispatch('updateNotification', {
id: notifId,
updater: notification => {
notification.type = 'follow'
- notification.seen = true
}
})
},
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
}
})
},