mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Prefer sorting subspaces alphabetically over roomId
Change-Id: I75217ca1cc27a30d5c4d62da0e4bc277e963073e
This commit is contained in:
parent
30fec15c20
commit
19e065cbea
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ import org.matrix.android.sdk.api.session.room.model.RoomSummary
|
|||
import org.matrix.android.sdk.api.session.room.model.SpaceChildInfo
|
||||
import org.matrix.android.sdk.api.session.room.summary.RoomAggregateNotificationCount
|
||||
import org.matrix.android.sdk.api.util.toMatrixItem
|
||||
import java.util.Locale
|
||||
import javax.inject.Inject
|
||||
|
||||
class SpaceSummaryController @Inject constructor(
|
||||
|
@ -47,7 +48,7 @@ class SpaceSummaryController @Inject constructor(
|
|||
var callback: Callback? = null
|
||||
private var viewState: SpaceListViewState? = null
|
||||
|
||||
private val subSpaceComparator: Comparator<SpaceChildInfo> = compareBy<SpaceChildInfo> { it.order }.thenBy { it.childRoomId }
|
||||
private val subSpaceComparator: Comparator<SpaceChildInfo> = compareBy<SpaceChildInfo> { it.order }.thenBy { it.name?.lowercase(Locale.getDefault()) }.thenBy { it.childRoomId }
|
||||
|
||||
init {
|
||||
requestModelBuild()
|
||||
|
|
Loading…
Reference in a new issue