Skip to content

Commit

Permalink
send queue: handle reactions in the send queue
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Jul 22, 2024
1 parent aced24e commit 106b552
Show file tree
Hide file tree
Showing 4 changed files with 275 additions and 39 deletions.
12 changes: 12 additions & 0 deletions crates/matrix-sdk-base/src/store/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,18 @@ pub enum DependentQueuedEventKind {

/// The event should be redacted/aborted/removed.
Redact,

/// The event should be reacted to, with the given key.
React {
/// Key used for the reaction.
key: String,

/// The transaction id to use for sending the reaction.
///
/// Note: it's not the one for the local echo of the event we're
/// reacting to.
transaction_id: OwnedTransactionId,
},
}

/// An event to be sent, depending on a [`QueuedEvent`] to be sent first.
Expand Down
4 changes: 4 additions & 0 deletions crates/matrix-sdk-ui/src/timeline/inner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,10 @@ impl<P: RoomDataProvider> TimelineInner<P> {
.await;
}
}

LocalEchoContent::React { key, send_handle } => {
todo!();
}
}
}

Expand Down
Loading

0 comments on commit 106b552

Please sign in to comment.