mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Changes space subtitle in explore rooms from joined string to direct space parent
This commit is contained in:
parent
a6113526d0
commit
6513210904
1 changed files with 1 additions and 3 deletions
|
@ -199,9 +199,7 @@ class RoomSummaryItemFactory @Inject constructor(private val displayableEventFor
|
|||
|
||||
private fun getSearchResultSubtitle(roomSummary: RoomSummary): String {
|
||||
val userId = roomSummary.directUserId
|
||||
val spaceName = roomSummary.flattenParents
|
||||
.takeIf { it.isNotEmpty() }
|
||||
?.joinToString(", ") { it.name }
|
||||
val spaceName = roomSummary.flattenParents.lastOrNull()?.name
|
||||
val canonicalAlias = roomSummary.canonicalAlias
|
||||
|
||||
return (userId ?: spaceName ?: canonicalAlias).orEmpty()
|
||||
|
|
Loading…
Add table
Reference in a new issue