Create and use Incompatible Settings Controller
This commit is contained in:
parent
63d95706e9
commit
413b37d3dc
2 changed files with 49 additions and 0 deletions
|
@ -38,6 +38,7 @@ import { UIFeature } from "./UIFeature";
|
|||
import { OrderedMultiController } from "./controllers/OrderedMultiController";
|
||||
import {Layout} from "./Layout";
|
||||
import ReducedMotionController from './controllers/ReducedMotionController';
|
||||
import IncompatibleController from "./controllers/IncompatibleController";
|
||||
|
||||
// These are just a bunch of helper arrays to avoid copy/pasting a bunch of times
|
||||
const LEVELS_ROOM_SETTINGS = [
|
||||
|
@ -188,6 +189,8 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
|||
displayName: _td("Show message previews for reactions in DMs"),
|
||||
supportedLevels: LEVELS_FEATURE,
|
||||
default: false,
|
||||
// this option is a subset of `feature_roomlist_preview_reactions_all` so disable it when that one is enabled
|
||||
controller: new IncompatibleController("feature_roomlist_preview_reactions_all"),
|
||||
},
|
||||
"feature_roomlist_preview_reactions_all": {
|
||||
isFeature: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue