Automaticaly Mark Messages as Read

Avatar
Posts 25

Would it be Possible to Mark Messages automaticaly as Read after Reading it in the Notifications?

Thanks.

  • notifications
Avatar
Posts 116

I look that ;)

Avatar
Posts 116

Modifications Made

Added from_notification Parameter in Links:

  • In themes/assets/js/notifications.js: Added the from_notification parameter when clicking on a notification in the dropdown.
  • In app/Views/notifications/index.php: Added the from_notification parameter in the links on the notifications page.

Automatic Detection and Marking:

  • In app/Views/discussions/show.php:
    • Detected the from_notification parameter in the URL.
    • Automatically marks the notification as read when the page loads.
    • Cleans up the URL by removing the parameter after processing.

Workflow:

  • When you click on a notification (either from the dropdown or the /notifications page), the link includes ?from_notification={id}.
  • Upon arriving at the discussion page, the notification is marked as read.
  • The URL is cleaned to remove the parameter.

Notifications are now automatically marked as read when you view the associated message.

Visitor, reply to this topic…
Log in to reply
Navigation
3Posts
post #1
02 Jan 2026
ByUtilisateur