To reproduce: go to your inbox and use the delete button of a message.
Result: Either nothing happens, or the message disappears but reappears when you refresh the page.
The reason it does not work is that the id value rendered into the template in the data-mid attribute is a Message id, but the button posts that id value to /messages/notifications/delete which is expecting a Notification id.
To reproduce: go to your inbox and use the delete button of a message.
Result: Either nothing happens, or the message disappears but reappears when you refresh the page.
The reason it does not work is that the
id
value rendered into the template in thedata-mid
attribute is aMessage
id, but the button posts thatid
value to/messages/notifications/delete
which is expecting aNotification
id.