Receipt for a redaction within a thread is sent to the main thread #26363
Closed
Description
Part of #24392 (Stuck Notifications)
(Found while debugging "Reading an unread thread after a redaction of the latest message makes it read" inside cypress/e2e/read-receipts/redactions.spec.ts
.)
When I open an unread thread where the last message was a redaction of a message within that thread, I see this request in the Network tab in my browser:
http://example.com/_matrix/client/v3/rooms/!roomid/receipt/m.read/%24eventtoredactid
{
"thread_id": "main"
}
which is incorrect, because the redaction event happened within the thread, so we should be sending a body of:
{
"thread_id": "$mythreadid"
}