drafttext fix
This commit is contained in:
parent
6b7bc45fed
commit
28d2525e4a
@ -723,10 +723,10 @@ struct PrivateChatView: View {
|
|||||||
let text = draftText.trimmingCharacters(in: .whitespacesAndNewlines)
|
let text = draftText.trimmingCharacters(in: .whitespacesAndNewlines)
|
||||||
guard !text.isEmpty else { return }
|
guard !text.isEmpty else { return }
|
||||||
|
|
||||||
draftText = ""
|
|
||||||
scrollToBottomTrigger = .init()
|
scrollToBottomTrigger = .init()
|
||||||
viewModel.sendMessage(text: text) { success in
|
viewModel.sendMessage(text: text) { success in
|
||||||
if success {
|
if success {
|
||||||
|
draftText = ""
|
||||||
hasPositionedToBottom = true
|
hasPositionedToBottom = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user