Limit conversations a message can be forwarded to (#5793)

* Limit conversations a message can be forwarded to

* Review fixups

* fix: remove the unused constant argument

---------

Co-authored-by: Mauro Romito <mauro.romito@element.io>
This commit is contained in:
Michael
2026-06-30 07:01:49 -05:00
committed by GitHub
parent 2d486ece33
commit ff9c260674
3 changed files with 12 additions and 4 deletions
@@ -16,8 +16,13 @@ enum MessageForwardingScreenViewModelAction {
struct MessageForwardingScreenViewState: BindableState {
var rooms: [MessageForwardingRoom] = []
var selectedRoomIDs = [String]()
var selectedRoomIDs: Set<String> = []
let maxRoomSelectionCount = 10
var bindings = MessageForwardingScreenViewStateBindings()
var isAtRoomSelectionLimit: Bool {
selectedRoomIDs.count >= maxRoomSelectionCount
}
}
struct MessageForwardingScreenViewStateBindings {