mark single notifs as seen properly on server

This commit is contained in:
Shpuld Shpuldson 2020-05-02 10:52:57 +03:00
parent 406fdd8ede
commit 75519223f9
4 changed files with 22 additions and 6 deletions

View file

@ -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
}
})
},