fix empty guest names in conversation info list

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-11-27 14:45:02 +01:00
parent b3b525bbc2
commit 41927d2593
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -85,6 +85,10 @@ class ParticipantItem(
setOnlineStateColor(holder) setOnlineStateColor(holder)
holder.binding.nameText.text = model.displayName 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()) { if (adapter!!.hasFilter()) {
viewThemeUtils.talk.themeAndHighlightText( viewThemeUtils.talk.themeAndHighlightText(
holder.binding.nameText, holder.binding.nameText,