Iterate things
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
d70a9bd001
commit
a6edc34e97
5 changed files with 35 additions and 98 deletions
|
@ -26,7 +26,6 @@ import CustomStatusController from "./controllers/CustomStatusController";
|
|||
import ThemeController from './controllers/ThemeController';
|
||||
import ReloadOnChangeController from "./controllers/ReloadOnChangeController";
|
||||
import {RIGHT_PANEL_PHASES} from "../stores/RightPanelStorePhases";
|
||||
import RoomListOrderingController from "./controllers/RoomListOrderingController";
|
||||
|
||||
// These are just a bunch of helper arrays to avoid copy/pasting a bunch of times
|
||||
const LEVELS_ROOM_SETTINGS = ['device', 'room-device', 'room-account', 'account', 'config'];
|
||||
|
@ -434,11 +433,10 @@ export const SETTINGS = {
|
|||
deny: [],
|
||||
},
|
||||
},
|
||||
"RoomList.orderingAlgorithm": {
|
||||
"RoomList.orderByRecents": {
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
displayName: _td("Order rooms by message activity instead of by name"),
|
||||
default: "recent", // controller maps boolean onto algorithm for future flexibility to >2 algorithms
|
||||
controller: new RoomListOrderingController(),
|
||||
default: true,
|
||||
},
|
||||
"RoomList.orderByImportance": {
|
||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue