mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
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:
+6
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user