Mark the notification as read if the user is online.