Add some spacing between attachments and text

This commit is contained in:
Naveen 2023-02-19 15:17:51 +05:30
parent 0b33ec877d
commit 49597a8db3
3 changed files with 7 additions and 3 deletions

View file

@ -260,8 +260,9 @@ class ThreadAdapter(
holder.viewClicked(message)
}
thread_mesage_attachments_holder.removeAllViews()
if (message.attachment?.attachments?.isNotEmpty() == true) {
thread_mesage_attachments_holder.beVisible()
thread_mesage_attachments_holder.removeAllViews()
for (attachment in message.attachment.attachments) {
val mimetype = attachment.mimetype
when {
@ -272,6 +273,8 @@ class ThreadAdapter(
thread_message_play_outline.beVisibleIf(mimetype.startsWith("video/"))
}
} else {
thread_mesage_attachments_holder.beGone()
}
}
}