Room selection: add a limitation of 10 rooms for Share and Forward actions.

This commit is contained in:
Benoit Marty
2026-06-12 09:22:29 +02:00
parent c0c2f59822
commit d33852d32f
11 changed files with 75 additions and 17 deletions
@@ -17,6 +17,7 @@ import io.element.android.libraries.matrix.api.core.RoomId
interface RoomSelectEntryPoint : FeatureEntryPoint {
data class Params(
val mode: RoomSelectMode,
val maxNumberOfRooms: Int,
)
fun createNode(
@@ -30,4 +31,8 @@ interface RoomSelectEntryPoint : FeatureEntryPoint {
fun onRoomSelected(roomIds: List<RoomId>)
fun onCancel()
}
companion object {
const val DEFAULT_MAX_NUMBER_OF_ROOMS = 10
}
}