Merge pull request #1437 from vector-im/feature/fix_1169

Fix / reply ux stays too long
This commit is contained in:
Valere 2020-06-04 11:44:53 +02:00 committed by GitHub
commit 240f1f51b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -12,6 +12,7 @@ Improvements 🙌:
Bugfix 🐛:
- Switch theme is not fully taken into account without restarting the app
- Temporary fix to show error when user is creating an account on matrix.org with userId containing only digits (#1410)
- Reply composer overlay stays on screen too long after send (#1169)
Translations 🗣:
-

View file

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