Merge pull request #3833 from matrix-org/dbkr/feature-presence-indicator_rel
Add feature flag around the presence indicator in room list
This commit is contained in:
commit
415c8679f9
3 changed files with 11 additions and 1 deletions
|
@ -381,7 +381,10 @@ module.exports = createReactClass({
|
||||||
|
|
||||||
const { room } = this.props;
|
const { room } = this.props;
|
||||||
const member = room.getMember(dmUserId);
|
const member = room.getMember(dmUserId);
|
||||||
if (member && member.membership === "join" && room.getJoinedMemberCount() === 2) {
|
if (
|
||||||
|
member && member.membership === "join" && room.getJoinedMemberCount() === 2 &&
|
||||||
|
SettingsStore.isFeatureEnabled("feature_presence_in_room_list")
|
||||||
|
) {
|
||||||
const UserOnlineDot = sdk.getComponent('rooms.UserOnlineDot');
|
const UserOnlineDot = sdk.getComponent('rooms.UserOnlineDot');
|
||||||
dmOnline = <UserOnlineDot userId={dmUserId} />;
|
dmOnline = <UserOnlineDot userId={dmUserId} />;
|
||||||
}
|
}
|
||||||
|
|
|
@ -359,6 +359,7 @@
|
||||||
"Multiple integration managers": "Multiple integration managers",
|
"Multiple integration managers": "Multiple integration managers",
|
||||||
"Try out new ways to ignore people (experimental)": "Try out new ways to ignore people (experimental)",
|
"Try out new ways to ignore people (experimental)": "Try out new ways to ignore people (experimental)",
|
||||||
"New DM invite dialog (under development)": "New DM invite dialog (under development)",
|
"New DM invite dialog (under development)": "New DM invite dialog (under development)",
|
||||||
|
"Show a presence dot next to DMs in the room list": "Show a presence dot next to DMs in the room list",
|
||||||
"Enable cross-signing to verify per-user instead of per-device (in development)": "Enable cross-signing to verify per-user instead of per-device (in development)",
|
"Enable cross-signing to verify per-user instead of per-device (in development)": "Enable cross-signing to verify per-user instead of per-device (in development)",
|
||||||
"Enable local event indexing and E2EE search (requires restart)": "Enable local event indexing and E2EE search (requires restart)",
|
"Enable local event indexing and E2EE search (requires restart)": "Enable local event indexing and E2EE search (requires restart)",
|
||||||
"Show info about bridges in room settings": "Show info about bridges in room settings",
|
"Show info about bridges in room settings": "Show info about bridges in room settings",
|
||||||
|
|
|
@ -134,6 +134,12 @@ export const SETTINGS = {
|
||||||
supportedLevels: LEVELS_FEATURE,
|
supportedLevels: LEVELS_FEATURE,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
"feature_presence_in_room_list": {
|
||||||
|
isFeature: true,
|
||||||
|
displayName: _td("Show a presence dot next to DMs in the room list"),
|
||||||
|
supportedLevels: LEVELS_FEATURE,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
"mjolnirRooms": {
|
"mjolnirRooms": {
|
||||||
supportedLevels: ['account'],
|
supportedLevels: ['account'],
|
||||||
default: [],
|
default: [],
|
||||||
|
|
Loading…
Reference in a new issue