hotfix(ai-scribe): Only implement OnTextSelectionChanged when isAIScribeAvailable is true
This commit is contained in:
@@ -248,7 +248,9 @@ class ComposerView extends GetWidget<ComposerController> {
|
|||||||
onCreatedEditorAction: controller.onCreatedMobileEditorAction,
|
onCreatedEditorAction: controller.onCreatedMobileEditorAction,
|
||||||
onLoadCompletedEditorAction: controller.onLoadCompletedMobileEditorAction,
|
onLoadCompletedEditorAction: controller.onLoadCompletedMobileEditorAction,
|
||||||
onEditorContentHeightChanged: controller.onEditorContentHeightChangedOnIOS,
|
onEditorContentHeightChanged: controller.onEditorContentHeightChangedOnIOS,
|
||||||
onTextSelectionChanged: controller.handleTextSelection,
|
onTextSelectionChanged: controller.isAIScribeAvailable
|
||||||
|
? controller.handleTextSelection
|
||||||
|
: null,
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Obx(() {
|
Obx(() {
|
||||||
@@ -437,7 +439,9 @@ class ComposerView extends GetWidget<ComposerController> {
|
|||||||
onCreatedEditorAction: controller.onCreatedMobileEditorAction,
|
onCreatedEditorAction: controller.onCreatedMobileEditorAction,
|
||||||
onLoadCompletedEditorAction: controller.onLoadCompletedMobileEditorAction,
|
onLoadCompletedEditorAction: controller.onLoadCompletedMobileEditorAction,
|
||||||
onEditorContentHeightChanged: controller.onEditorContentHeightChangedOnIOS,
|
onEditorContentHeightChanged: controller.onEditorContentHeightChangedOnIOS,
|
||||||
onTextSelectionChanged: controller.handleTextSelection,
|
onTextSelectionChanged: controller.isAIScribeAvailable
|
||||||
|
? controller.handleTextSelection
|
||||||
|
: null,
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Obx(() {
|
Obx(() {
|
||||||
|
|||||||
@@ -268,7 +268,9 @@ class ComposerView extends GetWidget<ComposerController> {
|
|||||||
),
|
),
|
||||||
onInitialContentLoadComplete: controller.onInitialContentLoadCompleteWeb,
|
onInitialContentLoadComplete: controller.onInitialContentLoadCompleteWeb,
|
||||||
onKeyDownEditorAction: controller.onKeyDownEditorAction,
|
onKeyDownEditorAction: controller.onKeyDownEditorAction,
|
||||||
onTextSelectionChanged: controller.handleTextSelection,
|
onTextSelectionChanged: controller.isAIScribeAvailable
|
||||||
|
? controller.handleTextSelection
|
||||||
|
: null,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@@ -512,7 +514,9 @@ class ComposerView extends GetWidget<ComposerController> {
|
|||||||
),
|
),
|
||||||
onInitialContentLoadComplete: controller.onInitialContentLoadCompleteWeb,
|
onInitialContentLoadComplete: controller.onInitialContentLoadCompleteWeb,
|
||||||
onKeyDownEditorAction: controller.onKeyDownEditorAction,
|
onKeyDownEditorAction: controller.onKeyDownEditorAction,
|
||||||
onTextSelectionChanged: controller.handleTextSelection,
|
onTextSelectionChanged: controller.isAIScribeAvailable
|
||||||
|
? controller.handleTextSelection
|
||||||
|
: null,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -790,7 +794,9 @@ class ComposerView extends GetWidget<ComposerController> {
|
|||||||
),
|
),
|
||||||
onInitialContentLoadComplete: controller.onInitialContentLoadCompleteWeb,
|
onInitialContentLoadComplete: controller.onInitialContentLoadCompleteWeb,
|
||||||
onKeyDownEditorAction: controller.onKeyDownEditorAction,
|
onKeyDownEditorAction: controller.onKeyDownEditorAction,
|
||||||
onTextSelectionChanged: controller.handleTextSelection,
|
onTextSelectionChanged: controller.isAIScribeAvailable
|
||||||
|
? controller.handleTextSelection
|
||||||
|
: null,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user