show initials avatar for email guests if displayname is set

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-11-19 17:18:18 +01:00
parent 6e3188f1df
commit 8a3f779fdc
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -206,7 +206,13 @@ class ParticipantItem(
}
Participant.ActorType.EMAILS -> {
holder.binding.avatarView.loadMailAvatar(viewThemeUtils)
model.displayName?.let {
if (TextUtils.isEmpty(it)) {
holder.binding.avatarView.loadMailAvatar(viewThemeUtils)
} else {
holder.binding.avatarView.loadGuestAvatar(user, it, false)
}
}
}
Participant.ActorType.USERS -> {