Observe CRT preference with values (#6291)
This commit is contained in:
parent
0464dd34ee
commit
4bd2416d47
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ export const getThreadById = async (database: Database, threadId: string) => {
|
|||
|
||||
export const observeIsCRTEnabled = (database: Database) => {
|
||||
const config = observeConfig(database);
|
||||
const preferences = queryPreferencesByCategoryAndName(database, Preferences.CATEGORY_DISPLAY_SETTINGS).observe();
|
||||
const preferences = queryPreferencesByCategoryAndName(database, Preferences.CATEGORY_DISPLAY_SETTINGS).observeWithColumns(['value']);
|
||||
return combineLatest([config, preferences]).pipe(
|
||||
map(
|
||||
([cfg, prefs]) => isCRTEnabled(prefs, cfg),
|
||||
|
|
|
|||
Loading…
Reference in a new issue