mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
mobile: send live message when there is any content (#1721)
* ios: send live message when there is any content * android: improve live message logic * fix, refactor * prohibit live messages with quotes
This commit is contained in:
parent
9e3573fc76
commit
a6d7604d21
8 changed files with 65 additions and 64 deletions
|
@ -100,7 +100,9 @@ struct SendMessageView: View {
|
|||
} else {
|
||||
voiceMessageNotAllowedButton()
|
||||
}
|
||||
if let send = sendLiveMessage, let update = updateLiveMessage {
|
||||
if let send = sendLiveMessage,
|
||||
let update = updateLiveMessage,
|
||||
case .noContextItem = composeState.contextItem {
|
||||
startLiveMessageButton(send: send, update: update)
|
||||
}
|
||||
}
|
||||
|
@ -137,11 +139,12 @@ struct SendMessageView: View {
|
|||
!composeState.sendEnabled ||
|
||||
composeState.disabled ||
|
||||
(!voiceMessageAllowed && composeState.voicePreview) ||
|
||||
(composeState.liveMessage != nil && composeState.message.isEmpty)
|
||||
composeState.endLiveDisabled
|
||||
)
|
||||
.frame(width: 29, height: 29)
|
||||
|
||||
if composeState.liveMessage == nil,
|
||||
case .noContextItem = composeState.contextItem,
|
||||
!composeState.voicePreview && !composeState.editing,
|
||||
let send = sendLiveMessage,
|
||||
let update = updateLiveMessage {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue