From 41927d259311f39028e86c0e6dc477ec689a52a5 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 27 Nov 2024 14:45:02 +0100 Subject: [PATCH] fix empty guest names in conversation info list Signed-off-by: Marcel Hibbe --- .../java/com/nextcloud/talk/adapters/items/ParticipantItem.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 b0f30402e..e23df8409 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 @@ -85,6 +85,10 @@ class ParticipantItem( setOnlineStateColor(holder) holder.binding.nameText.text = model.displayName + if (model.type == Participant.ParticipantType.GUEST && model.displayName.isNullOrBlank()) { + holder.binding.nameText.text = sharedApplication!!.getString(R.string.nc_guest) + } + if (adapter!!.hasFilter()) { viewThemeUtils.talk.themeAndHighlightText( holder.binding.nameText,