TF-4141 Add the AI needs-action option into the user settings.

This commit is contained in:
dab246
2025-12-23 01:13:17 +07:00
committed by Dat H. Pham
parent cb0471ecb7
commit 1661210e04
19 changed files with 171 additions and 35 deletions
@@ -50,7 +50,7 @@ class PreferencesController extends BaseController {
final _manageAccountDashBoardController = Get.find<ManageAccountDashBoardController>();
bool get isAIScribeAvailable {
bool get isAICapabilitySupported {
return _manageAccountDashBoardController.isAICapabilitySupported;
}
@@ -183,6 +183,11 @@ class PreferencesController extends BaseController {
displaySenderPriority: !isEnabled,
);
break;
case PreferencesOptionType.aiNeedsAction:
newSettingOption = settingOption.value?.copyWith(
aiNeedsActionEnabled: !isEnabled,
);
break;
default:
break;
}