diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt index bb29174ae7..45c56e9137 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt @@ -158,7 +158,8 @@ class MessageComposerViewModel @AssistedInject constructor( } private fun handleEnterRegularMode(action: MessageComposerAction.EnterRegularMode) = setState { - copy(sendMode = SendMode.Regular(currentComposerText, action.fromSharing)) + val newText = if (sendMode is SendMode.Edit) "" else currentComposerText + copy(sendMode = SendMode.Regular(newText, action.fromSharing)) } private fun handleEnterEditMode(action: MessageComposerAction.EnterEditMode) {