diff --git a/app/src/main/java/chat/rocket/android/chatroom/presentation/ChatRoomPresenter.kt b/app/src/main/java/chat/rocket/android/chatroom/presentation/ChatRoomPresenter.kt index 2b8633243f..779d8128db 100644 --- a/app/src/main/java/chat/rocket/android/chatroom/presentation/ChatRoomPresenter.kt +++ b/app/src/main/java/chat/rocket/android/chatroom/presentation/ChatRoomPresenter.kt @@ -352,6 +352,7 @@ class ChatRoomPresenter @Inject constructor( RoomUiModel(roles = chatRoles, isBroadcast = chatIsBroadcast) ), false ) + view.clearMessageComposition(true) client.sendMessage(id, chatRoomId, text) messagesRepository.save(newMessage.copy(synced = true)) logMessageSent() @@ -376,7 +377,6 @@ class ChatRoomPresenter @Inject constructor( Timber.e(ex, "Error sending message...") jobSchedulerInteractor.scheduleSendingMessages() } finally { - view.clearMessageComposition(true) view.enableSendMessageButton() } }