mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Issue 4343 (#4490)
Remove image in text composer if message to be replied is updated to message that does not have image or show image in text composer if message to be replied is updated to message that has image.
This commit is contained in:
parent
f622468f3b
commit
289339f2db
2 changed files with 4 additions and 0 deletions
1
changelog.d/4343.bugfix
Normal file
1
changelog.d/4343.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Fix a display issue in the composer when the replied message is changed.
|
|
@ -1057,9 +1057,12 @@ class RoomDetailFragment @Inject constructor(
|
||||||
imageContentRenderer.render(data, ImageContentRenderer.Mode.THUMBNAIL, views.composerLayout.views.composerRelatedMessageImage)
|
imageContentRenderer.render(data, ImageContentRenderer.Mode.THUMBNAIL, views.composerLayout.views.composerRelatedMessageImage)
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
|
imageContentRenderer.clear(views.composerLayout.views.composerRelatedMessageImage)
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
views.composerLayout.views.composerRelatedMessageImage.isVisible = isImageVisible
|
||||||
|
|
||||||
views.composerLayout.setTextIfDifferent(defaultContent)
|
views.composerLayout.setTextIfDifferent(defaultContent)
|
||||||
|
|
||||||
views.composerLayout.views.composerRelatedMessageActionIcon.setImageDrawable(ContextCompat.getDrawable(requireContext(), iconRes))
|
views.composerLayout.views.composerRelatedMessageActionIcon.setImageDrawable(ContextCompat.getDrawable(requireContext(), iconRes))
|
||||||
|
|
Loading…
Reference in a new issue