Improve display name disambiguation rendering #2722

This commit is contained in:
Benoit Marty 2024-04-22 15:47:49 +02:00 committed by Benoit Marty
parent 8524e3626e
commit 237ba3d727
14 changed files with 310 additions and 84 deletions

View file

@ -52,3 +52,10 @@ fun ProfileTimelineDetails.getDisambiguatedDisplayName(userId: UserId): String {
else -> userId.value
}
}
fun ProfileTimelineDetails.getAvatarUrl(): String? {
return when (this) {
is ProfileTimelineDetails.Ready -> avatarUrl
else -> null
}
}