Changes space subtitle in explore rooms from joined string to direct space parent
This commit is contained in:
parent
adf8c5fb9f
commit
89e528d552
@ -207,9 +207,7 @@ class RoomSummaryItemFactory @Inject constructor(
|
|||||||
|
|
||||||
private fun getSearchResultSubtitle(roomSummary: RoomSummary): String {
|
private fun getSearchResultSubtitle(roomSummary: RoomSummary): String {
|
||||||
val userId = roomSummary.directUserId
|
val userId = roomSummary.directUserId
|
||||||
val spaceName = roomSummary.flattenParents
|
val spaceName = roomSummary.flattenParents.lastOrNull()?.name
|
||||||
.takeIf { it.isNotEmpty() }
|
|
||||||
?.joinToString(", ") { it.name }
|
|
||||||
val canonicalAlias = roomSummary.canonicalAlias
|
val canonicalAlias = roomSummary.canonicalAlias
|
||||||
|
|
||||||
return (userId ?: spaceName ?: canonicalAlias).orEmpty()
|
return (userId ?: spaceName ?: canonicalAlias).orEmpty()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user