From b023b7d267c29c28e20ae25ed3971e9c87262e74 Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Thu, 25 Jul 2024 12:37:13 +0200 Subject: [PATCH] send queue: use the transaction id generated and saved in the db for network queries Intense facepalm energy here. --- crates/matrix-sdk/src/send_queue.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk/src/send_queue.rs b/crates/matrix-sdk/src/send_queue.rs index 53b371351fd..14712c57256 100644 --- a/crates/matrix-sdk/src/send_queue.rs +++ b/crates/matrix-sdk/src/send_queue.rs @@ -852,7 +852,11 @@ impl QueueStorage { ); store - .save_send_queue_event(&self.room_id, TransactionId::new(), serializable) + .save_send_queue_event( + &self.room_id, + de.own_transaction_id.into(), + serializable, + ) .await .map_err(RoomSendQueueStorageError::StorageError)?; } else { @@ -887,7 +891,9 @@ impl QueueStorage { // Note: no reason is provided because we materialize the intent of "cancel // sending the parent event". - if let Err(err) = room.redact(&event_id, None, None).await { + if let Err(err) = + room.redact(&event_id, None, Some(de.own_transaction_id.into())).await + { warn!("error when sending a redact for {event_id}: {err}"); } } else {