From 06fc22026804651e5906692fc71e807937556021 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Wed, 28 Aug 2024 17:57:24 +0200 Subject: [PATCH] ffi: use the send queue when sending an edit with `Room::edit` This will make it possible to send updates to observers, update local echoes, and so on, making it closer to the edit functions from the timeline. --- bindings/matrix-sdk-ffi/src/room.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/matrix-sdk-ffi/src/room.rs b/bindings/matrix-sdk-ffi/src/room.rs index 0cd2d95b5f8..b54e73bb027 100644 --- a/bindings/matrix-sdk-ffi/src/room.rs +++ b/bindings/matrix-sdk-ffi/src/room.rs @@ -734,7 +734,7 @@ impl Room { .make_edit_event(&event_id, EditedContent::RoomMessage((*new_content).clone())) .await?; - self.inner.send(replacement_event).await?; + self.inner.send_queue().send(replacement_event).await?; Ok(()) } }