mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Room profile: ensure RoomMemberSummaries order is guaranteed
This commit is contained in:
parent
78408fa0ec
commit
79a68a36bd
2 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ class RoomMemberListViewModel @AssistedInject constructor(@Assisted initialState
|
|||
}
|
||||
}
|
||||
|
||||
return mapOf(
|
||||
return listOf(
|
||||
PowerLevelCategory.ADMIN to admins,
|
||||
PowerLevelCategory.MODERATOR to moderators,
|
||||
PowerLevelCategory.CUSTOM to customs,
|
||||
|
|
|
@ -34,7 +34,7 @@ data class RoomMemberListViewState(
|
|||
constructor(args: RoomProfileArgs) : this(roomId = args.roomId)
|
||||
}
|
||||
|
||||
typealias RoomMemberSummaries = Map<PowerLevelCategory, List<RoomMemberSummary>>
|
||||
typealias RoomMemberSummaries = List<Pair<PowerLevelCategory, List<RoomMemberSummary>>>
|
||||
|
||||
enum class PowerLevelCategory(@StringRes val titleRes: Int) {
|
||||
ADMIN(R.string.room_member_power_level_admins),
|
||||
|
|
Loading…
Add table
Reference in a new issue