fix: if isFetching IGC, don't call getLanguageHelp again in message send function (#1361)
This commit is contained in:
parent
3fe673160e
commit
0e312417d0
1 changed files with 5 additions and 0 deletions
|
|
@ -77,6 +77,11 @@ class Choreographer {
|
|||
|
||||
void send(BuildContext context) {
|
||||
debugPrint("can send message: $canSendMessage");
|
||||
|
||||
// if isFetching, already called to getLanguageHelp and hasn't completed yet
|
||||
// could happen if user clicked send button multiple times in a row
|
||||
if (isFetching) return;
|
||||
|
||||
if (igc.igcTextData != null && igc.igcTextData!.matches.isNotEmpty) {
|
||||
igc.showFirstMatch(context);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue