feature(space): use SpaceRoom.displayName from sdk

This commit is contained in:
ganfra 2025-10-07 20:15:46 +02:00
parent d475d948d6
commit 44c6ce01dc
9 changed files with 11 additions and 33 deletions

View file

@ -37,16 +37,5 @@ data class SpaceRoom(
) {
val isSpace = roomType == RoomType.Space
/**
* Temporary logic to compute a name for direct rooms with no name.
* This will be replaced by sdk logic in the future.
*/
val name = if (rawName == null && isDirect == true && heroes.size == 1) {
val dmRecipient = heroes.first()
dmRecipient.displayName
} else {
rawName
}
val visibility = SpaceRoomVisibility.fromJoinRule(joinRule)
}