mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-05 04:36:03 +00:00
android: fix compose view clearing state prematurely (#689)
This commit is contained in:
@@ -326,6 +326,7 @@ fun ComposeView(
|
||||
mc = updateMsgContent(oldMsgContent)
|
||||
)
|
||||
if (updatedItem != null) chatModel.upsertChatItem(cInfo, updatedItem.chatItem)
|
||||
clearState()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -369,11 +370,13 @@ fun ComposeView(
|
||||
mc = mc
|
||||
)
|
||||
if (aChatItem != null) chatModel.addChatItem(cInfo, aChatItem.chatItem)
|
||||
clearState()
|
||||
}
|
||||
} else {
|
||||
clearState()
|
||||
}
|
||||
}
|
||||
}
|
||||
clearState()
|
||||
}
|
||||
|
||||
fun onMessageChange(s: String) {
|
||||
|
||||
Reference in New Issue
Block a user