mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-09 08:27:32 -04:00
To get updates from the `SendQueue`, one needs to use `RoomSendQueue::subscribe`, it emits `RoomSendQueueUpdate`s. However, if one wants to receive updates for all rooms managed by the `SendQueue`, instead of subscribing to all `RoomSendQueue` individually, this patch introduces a new `SendQueue::subscribe` method, which emits `SendQueueUpdate`s. It's basically a wrapper around `RoomSendQueueUpdate` by adding an `OwnedRoomId`.