Skip to content

Commit

Permalink
ffi: use the send queue when sending an edit with Room::edit
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bnjbvr authored and stefanceriu committed Aug 29, 2024
1 parent f399f22 commit 06fc220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/matrix-sdk-ffi/src/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}
Expand Down

0 comments on commit 06fc220

Please sign in to comment.