fix messages bubble disappearing

This commit is contained in:
2021-10-11 12:25:33 +03:00
parent 07b5612896
commit 9457867d8e
2 changed files with 6 additions and 3 deletions
@@ -60,7 +60,10 @@ class AttachmentInflater constructor(
attachments = message.attachments!!
container.removeAllViews()
textContainer.removeAllViews()
if (textContainer.childCount > 1) {
textContainer.removeViews(1, textContainer.childCount - 1)
}
if (attachments.size == 1) {
when (val attachment = attachments[0]) {
@@ -619,10 +619,10 @@ class MessagesHistoryFragment :
}
binding.replyMessageTitle.text = title
binding.replyMessageText.text = message.text ?: "[no_message]"
binding.replyMessageText.text = message.text
if (isEditing) {
binding.message.setText(message.text ?: "[no_message]")
binding.message.setText(message.text)
}
}