Merge pull request #1733 from nextcloud/bugfix/1730/guests-without-names-quotes

Show quotes of unnamed guests with "Guests"
This commit is contained in:
Tim Krueger 2021-12-06 14:41:48 +01:00 committed by GitHub
commit acd0bb7cd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,2 +1,2 @@
DO NOT TOUCH; GENERATED BY DRONE DO NOT TOUCH; GENERATED BY DRONE
<span class="mdl-layout-title">Lint Report: 1 error and 223 warnings</span> <span class="mdl-layout-title">Lint Report: 1 error and 224 warnings</span>