Fix issue with guests in quoted messages

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2020-05-10 16:34:00 +02:00
parent 110ac03471
commit 7fb8dacb1e
No known key found for this signature in database
GPG Key ID: CDE0BBD2738C4CC0

View File

@ -390,7 +390,7 @@ class ChatView(private val bundle: Bundle) : BaseView(), ImageLoaderInterface {
quotedChatText.maxLines = 2
quotedChatText.ellipsize = TextUtils.TruncateAt.END
quotedChatText.text = chatMessage.text
quotedAuthor.text = chatMessage.user.name
quotedAuthor.text = if (chatMessage.user.name.isNotEmpty()) chatMessage.user.name else resources.getText(R.string.nc_guest)
quotedMessageTime.text = DateFormatter.format(chatMessage.createdAt, DateFormatter.Template.TIME)
loadImage(quotedUserAvatar, chatMessage.user.avatar)