fix: improve message sending logic and handle range download errors in translation service
This commit is contained in:
1 parent
2b826757cb
commit
01ad8471cc
3 files changed
+13
-15
No files matched your search
@@ -642,10 +642,6 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
}
|
||||
_lastTextSendAt = now;
|
||||
|
||||
// Clear input synchronously to prevent double-send
|
||||
_textController.clear();
|
||||
_textFieldFocusNode.requestFocus();
|
||||
|
||||
final settings = context.read<AppSettingsService>().settings;
|
||||
final translationService = context.read<TranslationService>();
|
||||
var outgoingText = text;
|
||||
@@ -683,6 +679,8 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
return;
|
||||
}
|
||||
|
||||
_textController.clear();
|
||||
_textFieldFocusNode.requestFocus();
|
||||
connector.sendMessage(
|
||||
_resolveContact(connector),
|
||||
outgoingText,
|
||||
|
||||
Reference in new issue
Block a user