Topic on Extension talk:Echo

What must be set for removing readed messages?

4
Want (talkcontribs)

I have installed Extension:Echo. Notifying it's ok, but I don't know, what can be set it to allow removing readed messages. User can only do switch between 'read' or 'unread' state.

SBisson (WMF) (talkcontribs)

There is currently no way for someone to explicitly delete notifications. Older read notifications are purged periodically from the database for performance reasons.

Want (talkcontribs)

Best solution for my wiki was finally change of code in includes/gateway/UserNotificationGateway.php, where I remove item in 'notification_table' instead of writing the timestamp into 'notification_read_timestamp'. Orphaned item remain in the 'event_table', but isn't problem, because may be later cleaned by maintenance script maintenance/removeOrphanedEvents.php

Want (talkcontribs)

I know that. But here, when I mark a message as read, is probably changed value 'event_deleted' from 0 to 1 in the table Extension:Echo/echo_event table. Because it has this effect for view of the Alerts. In the code is a function „toggleDeleted” that should allow this, but it's not clear to me how and when it is called.

Reply to "What must be set for removing readed messages?"