TF-3977 Setup disable thread as default
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class ThreadDetailLocalDataSourceImpl implements ThreadDetailDataSource {
|
|||||||
Future<bool> getThreadDetailStatus() {
|
Future<bool> getThreadDetailStatus() {
|
||||||
return Future.sync(() async {
|
return Future.sync(() async {
|
||||||
final preferencesRoot = await _preferencesSettingManager.loadPreferences();
|
final preferencesRoot = await _preferencesSettingManager.loadPreferences();
|
||||||
return preferencesRoot.setting.spamReport.isEnabled;
|
return preferencesRoot.setting.threadDetail.isEnabled;
|
||||||
}).catchError(_exceptionThrower.throwException);
|
}).catchError(_exceptionThrower.throwException);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -30,7 +30,7 @@ class ThreadDetailManager extends ReloadableController {
|
|||||||
|
|
||||||
final threadDetailSettingStatus = ThreadDetailSettingStatus.loading.obs;
|
final threadDetailSettingStatus = ThreadDetailSettingStatus.loading.obs;
|
||||||
AppLifecycleListener? appLifecycleListener;
|
AppLifecycleListener? appLifecycleListener;
|
||||||
bool threadDetailWasEnabled = true;
|
bool threadDetailWasEnabled = false;
|
||||||
|
|
||||||
bool get isSearchingOnMobile =>
|
bool get isSearchingOnMobile =>
|
||||||
mailboxDashBoardController.searchController.isSearchEmailRunning &&
|
mailboxDashBoardController.searchController.isSearchEmailRunning &&
|
||||||
@@ -110,7 +110,7 @@ class ThreadDetailManager extends ReloadableController {
|
|||||||
@override
|
@override
|
||||||
void handleFailureViewState(Failure failure) {
|
void handleFailureViewState(Failure failure) {
|
||||||
if (failure is GetThreadDetailStatusFailure) {
|
if (failure is GetThreadDetailStatusFailure) {
|
||||||
threadDetailSettingStatus.value = ThreadDetailSettingStatus.enabled;
|
threadDetailSettingStatus.value = ThreadDetailSettingStatus.disabled;
|
||||||
refreshThreadDetailOnSettingChanged();
|
refreshThreadDetailOnSettingChanged();
|
||||||
} else {
|
} else {
|
||||||
super.handleFailureViewState(failure);
|
super.handleFailureViewState(failure);
|
||||||
|
|||||||
Reference in New Issue
Block a user