forked from melod1n/fast-messenger
fix messages bubble disappearing
This commit is contained in:
@@ -60,7 +60,10 @@ class AttachmentInflater constructor(
|
|||||||
attachments = message.attachments!!
|
attachments = message.attachments!!
|
||||||
|
|
||||||
container.removeAllViews()
|
container.removeAllViews()
|
||||||
textContainer.removeAllViews()
|
|
||||||
|
if (textContainer.childCount > 1) {
|
||||||
|
textContainer.removeViews(1, textContainer.childCount - 1)
|
||||||
|
}
|
||||||
|
|
||||||
if (attachments.size == 1) {
|
if (attachments.size == 1) {
|
||||||
when (val attachment = attachments[0]) {
|
when (val attachment = attachments[0]) {
|
||||||
|
|||||||
@@ -619,10 +619,10 @@ class MessagesHistoryFragment :
|
|||||||
}
|
}
|
||||||
|
|
||||||
binding.replyMessageTitle.text = title
|
binding.replyMessageTitle.text = title
|
||||||
binding.replyMessageText.text = message.text ?: "[no_message]"
|
binding.replyMessageText.text = message.text
|
||||||
|
|
||||||
if (isEditing) {
|
if (isEditing) {
|
||||||
binding.message.setText(message.text ?: "[no_message]")
|
binding.message.setText(message.text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user