change (member moderation) : branch moderation on timeline

This commit is contained in:
ganfra 2025-05-13 11:39:19 +02:00
parent 58d9b12ab3
commit a09cc8de97
22 changed files with 169 additions and 95 deletions

View file

@ -44,6 +44,13 @@ fun ProfileTimelineDetails.getDisambiguatedDisplayName(userId: UserId): String {
}
}
fun ProfileTimelineDetails.getDisplayName(): String? {
return when (this) {
is ProfileTimelineDetails.Ready -> displayName
else -> null
}
}
fun ProfileTimelineDetails.getAvatarUrl(): String? {
return when (this) {
is ProfileTimelineDetails.Ready -> avatarUrl