Skip to content

Expose the redact endpoint to widgets #18573

@ghost

Description

Your use case

What would you like to do?

I'd like to delete events using the Widget API. Currently it is not possible to send m.room.redaction events via the Widget API because the redacts key is outside the content object and gets stripped by Element when I try to send the event using .transport.send(). I was told that it's because these events require a special endpoint that's not currently supported by the API.

Why would you like to it?

My widget is an interactive whiteboard that allows users to add, edit or delete shapes - both one's own and those added by other users. Using m.room.redaction seems like the most straightforward way to get rid of shapes that were deleted from the whiteboard.

How would you like to achieve it?

A method called .sendRedactionEvent that takes the ID of the event to be redacted as a string would be perfect.

Have you considered any alternatives?

The only alternative I can think of is collecting the IDs of the 'deleted' events in a special state event and then filtering them out based on that list after calling .readRoomEvents().

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions