Merge pull request #5284 from pangeachat/5280-igc-not-run-if-change-language
fix: pass manual IGC status after showing language mismatch popup
This commit is contained in:
commit
bd6aa421bb
1 changed files with 3 additions and 3 deletions
|
|
@ -2237,7 +2237,7 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
bool autosend = false,
|
||||
}) async {
|
||||
if (shouldShowLanguageMismatchPopupByActivity) {
|
||||
return showLanguageMismatchPopup();
|
||||
return showLanguageMismatchPopup(manual: manual);
|
||||
}
|
||||
|
||||
await choreographer.requestWritingAssistance(manual: manual);
|
||||
|
|
@ -2250,7 +2250,7 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
}
|
||||
}
|
||||
|
||||
void showLanguageMismatchPopup() {
|
||||
void showLanguageMismatchPopup({bool manual = false}) {
|
||||
if (!shouldShowLanguageMismatchPopupByActivity) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -2263,7 +2263,7 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
message: L10n.of(context).languageMismatchDesc,
|
||||
targetLanguage: targetLanguage,
|
||||
onConfirm: () => WidgetsBinding.instance.addPostFrameCallback(
|
||||
(_) => onRequestWritingAssistance(manual: false, autosend: true),
|
||||
(_) => onRequestWritingAssistance(manual: manual, autosend: true),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue