Allow the user to forward the same message to multiple rooms at once

This will send the item to the rooms in order they were chosen and only deep link
into the target room if single, otherwise it will just dismiss the forwarding screen
after sending.
This commit is contained in:
Stefan Ceriu
2026-05-27 13:55:35 +03:00
parent 7093d966b4
commit f040964d3f
7 changed files with 51 additions and 32 deletions
@@ -11,12 +11,12 @@ import MatrixRustSDK
enum MessageForwardingScreenViewModelAction {
case dismiss
case sent(roomID: String)
case sent(roomIDs: [String])
}
struct MessageForwardingScreenViewState: BindableState {
var rooms: [MessageForwardingRoom] = []
var selectedRoomID: String?
var selectedRoomIDs = [String]()
var bindings = MessageForwardingScreenViewStateBindings()
}