From 01f07c558426a201891bf74a48e2c10dbab1b99e Mon Sep 17 00:00:00 2001 From: ggurdin Date: Fri, 25 Oct 2024 09:51:39 -0400 Subject: [PATCH] move canSend function from igcController to choreographer --- .../choreographer/controllers/igc_controller.dart | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/pangea/choreographer/controllers/igc_controller.dart b/lib/pangea/choreographer/controllers/igc_controller.dart index 2b66dbd5d..ed770cca4 100644 --- a/lib/pangea/choreographer/controllers/igc_controller.dart +++ b/lib/pangea/choreographer/controllers/igc_controller.dart @@ -192,18 +192,4 @@ class IgcController { // Not sure why this is here // MatrixState.pAnyState.closeOverlay(); } - - bool get canSendMessage { - if (choreographer.isFetching) return false; - if (igcTextData == null || - choreographer.errorService.isError || - igcTextData!.matches.isEmpty) { - return true; - } - - return !((choreographer.itEnabled && - igcTextData!.matches.any((match) => match.isITStart)) || - (choreographer.igcEnabled && - igcTextData!.matches.any((match) => !match.isITStart))); - } }