Space preferences for whether or not you see DMs in a Space (#7250)

This commit is contained in:
Michael Telatynski
2021-12-17 09:26:32 +00:00
committed by GitHub
parent 5ee356daaa
commit 39c4b78371
22 changed files with 911 additions and 350 deletions
+5
View File
@@ -872,6 +872,11 @@ export const SETTINGS: {[setting: string]: ISetting} = {
[MetaSpace.Home]: true,
}, false),
},
"Spaces.showPeopleInSpace": {
supportedLevels: [SettingLevel.ROOM_ACCOUNT],
default: true,
controller: new IncompatibleController("showCommunitiesInsteadOfSpaces", null),
},
"showCommunitiesInsteadOfSpaces": {
displayName: _td("Display Communities instead of Spaces"),
description: _td("Temporarily show communities instead of Spaces for this session. " +
+1 -1
View File
@@ -18,7 +18,7 @@ import { SettingLevel } from "./SettingLevel";
export type CallbackFn = (changedInRoomId: string, atLevel: SettingLevel, newValAtLevel: any) => void;
const IRRELEVANT_ROOM = Symbol("irrelevant-room");
const IRRELEVANT_ROOM: string = null;
/**
* Generalized management class for dealing with watchers on a per-handler (per-level)