drafttext fix

This commit is contained in:
cheykrym 2025-12-12 02:14:25 +03:00
parent 6b7bc45fed
commit 28d2525e4a

View File

@ -723,10 +723,10 @@ struct PrivateChatView: View {
let text = draftText.trimmingCharacters(in: .whitespacesAndNewlines)
guard !text.isEmpty else { return }
draftText = ""
scrollToBottomTrigger = .init()
viewModel.sendMessage(text: text) { success in
if success {
draftText = ""
hasPositionedToBottom = true
}
}