hotfix(ai-scribe): Hide AI scribe option in user setting on mobile

This commit is contained in:
dab246
2025-12-23 13:01:45 +07:00
committed by Dat H. Pham
parent 29b54a76ee
commit 2b06dc65e3
@@ -1,3 +1,4 @@
import 'package:core/utils/platform_info.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:tmail_ui_user/features/base/mixin/app_loader_mixin.dart';
@@ -74,7 +75,7 @@ class PreferencesView extends GetWidget<PreferencesController> with AppLoaderMix
(optionType) => optionType.isLocal,
).where((optionType) {
if (optionType == PreferencesOptionType.aiScribe) {
return controller.isAIScribeAvailable;
return controller.isAIScribeAvailable && !PlatformInfo.isMobile;
}
return true;
}),