Fix / reply ux stays too long

This commit is contained in:
Valere 2020-06-02 19:31:25 +02:00
parent 1b95d98ccd
commit c09626182c
1 changed files with 2 additions and 0 deletions

View File

@ -622,6 +622,8 @@ class RoomDetailFragment @Inject constructor(
return return
} }
if (text.isNotBlank()) { if (text.isNotBlank()) {
// We collapse ASAP, if not there will be a slight anoying delay
composerLayout.collapse(true)
lockSendButton = true lockSendButton = true
roomDetailViewModel.handle(RoomDetailAction.SendMessage(text, vectorPreferences.isMarkdownEnabled())) roomDetailViewModel.handle(RoomDetailAction.SendMessage(text, vectorPreferences.isMarkdownEnabled()))
} }