mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-23 05:29:54 +01:00
Show quotes of unnamed guests with "Guests"
Before this change the default "Guests" label only was set if the actor display name was 'null'. Resolves: #1730 Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
64a7373538
commit
eb1512b890
@ -211,8 +211,8 @@ class MagicIncomingTextMessageViewHolder(itemView: View, payload: Any) : Message
|
|||||||
} ?: run {
|
} ?: run {
|
||||||
binding.messageQuote.quotedMessageImage.visibility = View.GONE
|
binding.messageQuote.quotedMessageImage.visibility = View.GONE
|
||||||
}
|
}
|
||||||
binding.messageQuote.quotedMessageAuthor.text = parentChatMessage.actorDisplayName
|
binding.messageQuote.quotedMessageAuthor.text = if (parentChatMessage.actorDisplayName.isNullOrEmpty())
|
||||||
?: context!!.getText(R.string.nc_nick_guest)
|
context!!.getText(R.string.nc_nick_guest) else parentChatMessage.actorDisplayName
|
||||||
binding.messageQuote.quotedMessage.text = parentChatMessage.text
|
binding.messageQuote.quotedMessage.text = parentChatMessage.text
|
||||||
|
|
||||||
binding.messageQuote.quotedMessageAuthor
|
binding.messageQuote.quotedMessageAuthor
|
||||||
|
Loading…
Reference in New Issue
Block a user