mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Room selection: add a limitation of 10 rooms for Share and Forward actions.
This commit is contained in:
+5
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user