TF-4141 should not show inkwell effect when user drag email into virtual folder

This commit is contained in:
dab246
2025-12-29 13:00:06 +07:00
committed by Dat H. Pham
parent 3e86f53862
commit df5ed118b3
16 changed files with 106 additions and 58 deletions
@@ -341,6 +341,17 @@ class ManageAccountDashBoardController extends ReloadableController
}
}
bool get isAIScribeCapabilityAvailable {
if (accountId.value != null && sessionCurrent != null) {
return isAIScribeEndpointAvailable(
session: sessionCurrent!,
accountId: accountId.value!,
);
} else {
return false;
}
}
void disableVacationResponder(
VacationResponse vacation, {
bool isAuto = false,
@@ -54,6 +54,10 @@ class PreferencesController extends BaseController {
return _manageAccountDashBoardController.isAICapabilitySupported;
}
bool get isAIScribeCapabilityAvailable {
return _manageAccountDashBoardController.isAIScribeCapabilityAvailable;
}
@override
void onInit() {
super.onInit();
@@ -77,7 +77,7 @@ class PreferencesView extends GetWidget<PreferencesController> with AppLoaderMix
(type) =>
type.isLocal &&
(type != PreferencesOptionType.aiScribe ||
controller.isAICapabilitySupported),
controller.isAIScribeCapabilityAvailable),
),
if (settingOption != null &&
controller.isAICapabilitySupported)