From 8a3f779fdc1c3e6cdec312daa69f16ef4119978b Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Tue, 19 Nov 2024 17:18:18 +0100 Subject: [PATCH] show initials avatar for email guests if displayname is set Signed-off-by: Marcel Hibbe --- .../com/nextcloud/talk/adapters/items/ParticipantItem.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/adapters/items/ParticipantItem.kt b/app/src/main/java/com/nextcloud/talk/adapters/items/ParticipantItem.kt index bfe4d801f..1a680128b 100644 --- a/app/src/main/java/com/nextcloud/talk/adapters/items/ParticipantItem.kt +++ b/app/src/main/java/com/nextcloud/talk/adapters/items/ParticipantItem.kt @@ -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 -> {