TF-3977 Separate settings keys for easier in conflict

This commit is contained in:
dab246
2025-09-09 11:12:57 +07:00
committed by Dat H. Pham
parent 7fdfb97fc5
commit 5a88f3c36f
27 changed files with 290 additions and 206 deletions
@@ -28,8 +28,8 @@ class ThreadDetailLocalDataSourceImpl implements ThreadDetailDataSource {
@override
Future<bool> getThreadDetailStatus() {
return Future.sync(() async {
final preferencesRoot = await _preferencesSettingManager.loadPreferences();
return preferencesRoot.setting.threadDetail.isEnabled;
final threadConfig = await _preferencesSettingManager.getThreadConfig();
return threadConfig.isEnabled;
}).catchError(_exceptionThrower.throwException);
}
}