mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 20:45:49 +00:00
android: fix compose/send message not resetting some state (#639)
This commit is contained in:
@@ -35,6 +35,7 @@ fun TerminalView(chatModel: ChatModel, close: () -> Unit) {
|
||||
withApi {
|
||||
// show "in progress"
|
||||
chatModel.controller.sendCmd(CC.Console(composeState.value.message))
|
||||
composeState.value = ComposeState()
|
||||
// hide "in progress"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -185,6 +185,7 @@ fun ComposeView(
|
||||
|
||||
fun clearState() {
|
||||
composeState.value = ComposeState()
|
||||
textStyle.value = smallFont
|
||||
chosenImage.value = null
|
||||
chosenFile.value = null
|
||||
linkUrl.value = null
|
||||
|
||||
Reference in New Issue
Block a user