TF-3977 Setup disable thread as default

This commit is contained in:
dab246
2025-09-03 13:11:30 +07:00
committed by Dat H. Pham
parent 612fc75f02
commit 7fdfb97fc5
2 changed files with 3 additions and 3 deletions
@@ -29,7 +29,7 @@ class ThreadDetailLocalDataSourceImpl implements ThreadDetailDataSource {
Future<bool> getThreadDetailStatus() {
return Future.sync(() async {
final preferencesRoot = await _preferencesSettingManager.loadPreferences();
return preferencesRoot.setting.spamReport.isEnabled;
return preferencesRoot.setting.threadDetail.isEnabled;
}).catchError(_exceptionThrower.throwException);
}
}
@@ -30,7 +30,7 @@ class ThreadDetailManager extends ReloadableController {
final threadDetailSettingStatus = ThreadDetailSettingStatus.loading.obs;
AppLifecycleListener? appLifecycleListener;
bool threadDetailWasEnabled = true;
bool threadDetailWasEnabled = false;
bool get isSearchingOnMobile =>
mailboxDashBoardController.searchController.isSearchEmailRunning &&
@@ -110,7 +110,7 @@ class ThreadDetailManager extends ReloadableController {
@override
void handleFailureViewState(Failure failure) {
if (failure is GetThreadDetailStatusFailure) {
threadDetailSettingStatus.value = ThreadDetailSettingStatus.enabled;
threadDetailSettingStatus.value = ThreadDetailSettingStatus.disabled;
refreshThreadDetailOnSettingChanged();
} else {
super.handleFailureViewState(failure);