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:
ryg-git 2021-11-19 15:09:19 +05:30 committed by GitHub
parent f622468f3b
commit 289339f2db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

1
changelog.d/4343.bugfix Normal file
View File

@ -0,0 +1 @@
Fix a display issue in the composer when the replied message is changed.

View File

@ -1057,9 +1057,12 @@ class RoomDetailFragment @Inject constructor(
imageContentRenderer.render(data, ImageContentRenderer.Mode.THUMBNAIL, views.composerLayout.views.composerRelatedMessageImage)
true
} else {
imageContentRenderer.clear(views.composerLayout.views.composerRelatedMessageImage)
false
}
views.composerLayout.views.composerRelatedMessageImage.isVisible = isImageVisible
views.composerLayout.setTextIfDifferent(defaultContent)
views.composerLayout.views.composerRelatedMessageActionIcon.setImageDrawable(ContextCompat.getDrawable(requireContext(), iconRes))