Fix unusable area at the bottom when RTE is enabled and the user has no permissions in a room.
This commit is contained in:
parent
31811bb7e0
commit
347eeb8a37
|
@ -0,0 +1 @@
|
||||||
|
Fix unusable area when Rich Text Editor is enabled and the user has no permissions in a room
|
|
@ -1131,6 +1131,8 @@ class TimelineFragment :
|
||||||
lazyLoadedViews.inviteView(false)?.isVisible = false
|
lazyLoadedViews.inviteView(false)?.isVisible = false
|
||||||
|
|
||||||
if (mainState.tombstoneEvent == null) {
|
if (mainState.tombstoneEvent == null) {
|
||||||
|
views.composerContainer.isVisible = messageComposerState.isComposerVisible
|
||||||
|
|
||||||
when (messageComposerState.canSendMessage) {
|
when (messageComposerState.canSendMessage) {
|
||||||
CanSendStatus.Allowed -> {
|
CanSendStatus.Allowed -> {
|
||||||
NotificationAreaView.State.Hidden
|
NotificationAreaView.State.Hidden
|
||||||
|
|
|
@ -252,13 +252,6 @@ class MessageComposerFragment : VectorBaseFragment<FragmentComposerBinding>(), A
|
||||||
messageComposerViewModel.endAllVoiceActions()
|
messageComposerViewModel.endAllVoiceActions()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun invalidate() = withState(timelineViewModel, messageComposerViewModel) { mainState, messageComposerState ->
|
|
||||||
if (mainState.tombstoneEvent != null) return@withState
|
|
||||||
|
|
||||||
composer.setInvisible(!messageComposerState.isComposerVisible)
|
|
||||||
composer.sendButton.isInvisible = !messageComposerState.isSendButtonVisible
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun setupComposer() {
|
private fun setupComposer() {
|
||||||
val composerEditText = composer.editText
|
val composerEditText = composer.editText
|
||||||
composerEditText.setHint(R.string.room_message_placeholder)
|
composerEditText.setHint(R.string.room_message_placeholder)
|
||||||
|
|
Loading…
Reference in New Issue