Notifications "marked as read" are deleted?
Hello,
When we mark a notification as read in Wave, it appears to get deleted from the database.
Is there an option to have it marked as read in the database (and not deleted) and then perhaps on the Notifications page, show the read notifications below the unread notifications?
If not, I'd love to +1 this great suggestion ;)
Thanks,
Richard
Hi there,
I am just following up on some of the old unanswered questions on the site.
Yes, this is doable but with a little bit of a modification to the existing project.
In the Notifications table there is a column called read_at
:
By default it is going to be set to null, what you could do is to update the method in the Nitifications controller, so that the notifications are not deleted, but the read_at
is updated to the current time:
That way then in the notifications index blade view, you can introduce a little check to see if the read_at
column is set and highlight that to the user.
Hope that this helps anyone who comes across this in the future!
Best,
Bobby