diff --git a/framework/core/js/forum/src/components/Notification.js b/framework/core/js/forum/src/components/Notification.js index 05b5f1d84..ff8336a75 100644 --- a/framework/core/js/forum/src/components/Notification.js +++ b/framework/core/js/forum/src/components/Notification.js @@ -77,7 +77,10 @@ export default class Notification extends Component { * Mark the notification as read. */ markAsRead() { + if (this.props.notification.isRead()) return; + app.session.user.pushAttributes({unreadNotificationsCount: app.session.user.unreadNotificationsCount() - 1}); + this.props.notification.save({isRead: true}); } }