element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
68 stars 11 forks source link

[Tech] Rust SDK - Edit poll API #2180

Closed alfogrillo closed 8 months ago

alfogrillo commented 9 months ago

Description

Currently the rust sdk ffi layer allows send edited versions for m.room.message events. We need to edit m.poll.start (unstable) events.

The matrix-sdk-ui crate has a method to edit a timeline event:

pub async fn edit(
    &self,
    new_content: RoomMessageEventContent,
    edit_item: &EventTimelineItem,
) -> Result<(), UnsupportedEditItem> 

But is supports just RoomMessageEventContent as new content.

Size estimate

S?

Dependencies

Acceptance criteria

Subtasks

### Other
- [ ] https://github.com/matrix-org/matrix-rust-sdk/pull/2854
- [ ] https://github.com/matrix-org/matrix-rust-sdk/pull/2875