mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Add setting to hide avatars of rooms you have been invited to. (#29497)
* Add ability to block images of rooms you have been invited to. * strings * Add tests * fix snapshot * tweaks * lint
This commit is contained in:
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 247 KiB After Width: | Height: | Size: 249 KiB |
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2024 New Vector Ltd.
|
Copyright 2024, 2025 New Vector Ltd.
|
||||||
Copyright 2015, 2016 OpenMarket Ltd
|
Copyright 2015, 2016 OpenMarket Ltd
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
||||||
@@ -7,7 +7,14 @@ Please see LICENSE files in the repository root for full details.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import React, { type ComponentProps } from "react";
|
import React, { type ComponentProps } from "react";
|
||||||
import { type Room, RoomStateEvent, type MatrixEvent, EventType, RoomType } from "matrix-js-sdk/src/matrix";
|
import {
|
||||||
|
type Room,
|
||||||
|
RoomStateEvent,
|
||||||
|
type MatrixEvent,
|
||||||
|
EventType,
|
||||||
|
RoomType,
|
||||||
|
KnownMembership,
|
||||||
|
} from "matrix-js-sdk/src/matrix";
|
||||||
|
|
||||||
import BaseAvatar from "./BaseAvatar";
|
import BaseAvatar from "./BaseAvatar";
|
||||||
import ImageView from "../elements/ImageView";
|
import ImageView from "../elements/ImageView";
|
||||||
@@ -19,6 +26,7 @@ import { mediaFromMxc } from "../../../customisations/Media";
|
|||||||
import { type IOOBData } from "../../../stores/ThreepidInviteStore";
|
import { type IOOBData } from "../../../stores/ThreepidInviteStore";
|
||||||
import { LocalRoom } from "../../../models/LocalRoom";
|
import { LocalRoom } from "../../../models/LocalRoom";
|
||||||
import { filterBoolean } from "../../../utils/arrays";
|
import { filterBoolean } from "../../../utils/arrays";
|
||||||
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
|
|
||||||
interface IProps extends Omit<ComponentProps<typeof BaseAvatar>, "name" | "idName" | "url" | "onClick"> {
|
interface IProps extends Omit<ComponentProps<typeof BaseAvatar>, "name" | "idName" | "url" | "onClick"> {
|
||||||
// Room may be left unset here, but if it is,
|
// Room may be left unset here, but if it is,
|
||||||
@@ -86,6 +94,13 @@ export default class RoomAvatar extends React.Component<IProps, IState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
private static getImageUrls(props: IProps): string[] {
|
private static getImageUrls(props: IProps): string[] {
|
||||||
|
const myMembership = props.room?.getMyMembership();
|
||||||
|
if (myMembership === KnownMembership.Invite || !myMembership) {
|
||||||
|
if (SettingsStore.getValue("showAvatarsOnInvites") === false) {
|
||||||
|
// The user has opted out of showing avatars, so return no urls here.
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
let oobAvatar: string | null = null;
|
let oobAvatar: string | null = null;
|
||||||
if (props.oobData.avatarUrl) {
|
if (props.oobData.avatarUrl) {
|
||||||
oobAvatar = mediaFromMxc(props.oobData.avatarUrl).getThumbnailOfSourceHttp(
|
oobAvatar = mediaFromMxc(props.oobData.avatarUrl).getThumbnailOfSourceHttp(
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2024 New Vector Ltd.
|
Copyright 2024, 2025 New Vector Ltd.
|
||||||
Copyright 2019-2023 The Matrix.org Foundation C.I.C.
|
Copyright 2019-2023 The Matrix.org Foundation C.I.C.
|
||||||
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
|
Copyright 2019 Michael Telatynski <7t3chguy@gmail.com>
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ const SpellCheckSection: React.FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default class PreferencesUserSettingsTab extends React.Component<IProps, IState> {
|
export default class PreferencesUserSettingsTab extends React.Component<IProps, IState> {
|
||||||
private static ROOM_LIST_SETTINGS: BooleanSettingKey[] = ["breadcrumbs"];
|
private static ROOM_LIST_SETTINGS: BooleanSettingKey[] = ["breadcrumbs", "showAvatarsOnInvites"];
|
||||||
|
|
||||||
private static SPACES_SETTINGS: BooleanSettingKey[] = ["Spaces.allRoomsInHome"];
|
private static SPACES_SETTINGS: BooleanSettingKey[] = ["Spaces.allRoomsInHome"];
|
||||||
|
|
||||||
|
|||||||
@@ -2643,6 +2643,7 @@
|
|||||||
"inline_url_previews_room": "Enable URL previews by default for participants in this room",
|
"inline_url_previews_room": "Enable URL previews by default for participants in this room",
|
||||||
"inline_url_previews_room_account": "Enable URL previews for this room (only affects you)",
|
"inline_url_previews_room_account": "Enable URL previews for this room (only affects you)",
|
||||||
"insert_trailing_colon_mentions": "Insert a trailing colon after user mentions at the start of a message",
|
"insert_trailing_colon_mentions": "Insert a trailing colon after user mentions at the start of a message",
|
||||||
|
"invite_avatars": "Show avatars of rooms you have been invited to",
|
||||||
"jump_to_bottom_on_send": "Jump to the bottom of the timeline when you send a message",
|
"jump_to_bottom_on_send": "Jump to the bottom of the timeline when you send a message",
|
||||||
"key_backup": {
|
"key_backup": {
|
||||||
"backup_in_progress": "Your keys are being backed up (the first backup could take a few minutes).",
|
"backup_in_progress": "Your keys are being backed up (the first backup could take a few minutes).",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2024 New Vector Ltd.
|
Copyright 2024, 2025 New Vector Ltd.
|
||||||
Copyright 2018-2024 The Matrix.org Foundation C.I.C.
|
Copyright 2018-2024 The Matrix.org Foundation C.I.C.
|
||||||
Copyright 2017 Travis Ralston
|
Copyright 2017 Travis Ralston
|
||||||
|
|
||||||
@@ -312,6 +312,7 @@ export interface Settings {
|
|||||||
"lowBandwidth": IBaseSetting<boolean>;
|
"lowBandwidth": IBaseSetting<boolean>;
|
||||||
"fallbackICEServerAllowed": IBaseSetting<boolean | null>;
|
"fallbackICEServerAllowed": IBaseSetting<boolean | null>;
|
||||||
"showImages": IBaseSetting<boolean>;
|
"showImages": IBaseSetting<boolean>;
|
||||||
|
"showAvatarsOnInvites": IBaseSetting<boolean>;
|
||||||
"RoomList.preferredSorting": IBaseSetting<SortingAlgorithm>;
|
"RoomList.preferredSorting": IBaseSetting<SortingAlgorithm>;
|
||||||
"RightPanel.phasesGlobal": IBaseSetting<IRightPanelForRoomStored | null>;
|
"RightPanel.phasesGlobal": IBaseSetting<IRightPanelForRoomStored | null>;
|
||||||
"RightPanel.phases": IBaseSetting<IRightPanelForRoomStored | null>;
|
"RightPanel.phases": IBaseSetting<IRightPanelForRoomStored | null>;
|
||||||
@@ -1116,6 +1117,11 @@ export const SETTINGS: Settings = {
|
|||||||
displayName: _td("settings|image_thumbnails"),
|
displayName: _td("settings|image_thumbnails"),
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
"showAvatarsOnInvites": {
|
||||||
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
|
displayName: _td("settings|invite_avatars"),
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
"RoomList.preferredSorting": {
|
"RoomList.preferredSorting": {
|
||||||
supportedLevels: [SettingLevel.DEVICE],
|
supportedLevels: [SettingLevel.DEVICE],
|
||||||
default: SortingAlgorithm.Recency,
|
default: SortingAlgorithm.Recency,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2024 New Vector Ltd.
|
Copyright 2024, 2025 New Vector Ltd.
|
||||||
Copyright 2022 The Matrix.org Foundation C.I.C.
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
||||||
@@ -17,6 +17,8 @@ import DMRoomMap from "../../../../../src/utils/DMRoomMap";
|
|||||||
import { LocalRoom } from "../../../../../src/models/LocalRoom";
|
import { LocalRoom } from "../../../../../src/models/LocalRoom";
|
||||||
import * as AvatarModule from "../../../../../src/Avatar";
|
import * as AvatarModule from "../../../../../src/Avatar";
|
||||||
import { DirectoryMember } from "../../../../../src/utils/direct-messages";
|
import { DirectoryMember } from "../../../../../src/utils/direct-messages";
|
||||||
|
import SettingsStore from "../../../../../src/settings/SettingsStore";
|
||||||
|
import { SettingLevel } from "../../../../../src/settings/SettingLevel";
|
||||||
|
|
||||||
describe("RoomAvatar", () => {
|
describe("RoomAvatar", () => {
|
||||||
let client: MatrixClient;
|
let client: MatrixClient;
|
||||||
@@ -41,6 +43,12 @@ describe("RoomAvatar", () => {
|
|||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
mocked(DMRoomMap.shared().getUserIdForRoomId).mockReset();
|
mocked(DMRoomMap.shared().getUserIdForRoomId).mockReset();
|
||||||
mocked(AvatarModule.defaultAvatarUrlForString).mockClear();
|
mocked(AvatarModule.defaultAvatarUrlForString).mockClear();
|
||||||
|
SettingsStore.setValue(
|
||||||
|
"showAvatarsOnInvites",
|
||||||
|
null,
|
||||||
|
SettingLevel.ACCOUNT,
|
||||||
|
SettingsStore.getDefaultValue("showAvatarsOnInvites"),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should render as expected for a Room", () => {
|
it("should render as expected for a Room", () => {
|
||||||
@@ -64,4 +72,19 @@ describe("RoomAvatar", () => {
|
|||||||
localRoom.targets.push(new DirectoryMember({ user_id: userId }));
|
localRoom.targets.push(new DirectoryMember({ user_id: userId }));
|
||||||
expect(render(<RoomAvatar room={localRoom} />).container).toMatchSnapshot();
|
expect(render(<RoomAvatar room={localRoom} />).container).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
it("should render an avatar for a room the user is invited to", () => {
|
||||||
|
SettingsStore.setValue("showAvatarsOnInvites", null, SettingLevel.ACCOUNT, true);
|
||||||
|
const room = new Room("!room:example.com", client, client.getSafeUserId());
|
||||||
|
jest.spyOn(room, "getMxcAvatarUrl").mockImplementation(() => "mxc://example.com/foobar");
|
||||||
|
room.name = "test room";
|
||||||
|
room.updateMyMembership("invite");
|
||||||
|
expect(render(<RoomAvatar room={room} />).container).toMatchSnapshot();
|
||||||
|
});
|
||||||
|
it("should not render an invite avatar if the user has disabled it", () => {
|
||||||
|
SettingsStore.setValue("showAvatarsOnInvites", null, SettingLevel.ACCOUNT, false);
|
||||||
|
const room = new Room("!room:example.com", client, client.getSafeUserId());
|
||||||
|
room.name = "test room";
|
||||||
|
room.updateMyMembership("invite");
|
||||||
|
expect(render(<RoomAvatar room={room} />).container).toMatchSnapshot();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,44 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||||
|
|
||||||
|
exports[`RoomAvatar should not render an invite avatar if the user has disabled it 1`] = `
|
||||||
|
<div>
|
||||||
|
<span
|
||||||
|
class="_avatar_1qbcf_8 mx_BaseAvatar _avatar-imageless_1qbcf_52"
|
||||||
|
data-color="6"
|
||||||
|
data-testid="avatar-img"
|
||||||
|
data-type="round"
|
||||||
|
role="presentation"
|
||||||
|
style="--cpd-avatar-size: 36px;"
|
||||||
|
>
|
||||||
|
t
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
|
exports[`RoomAvatar should render an avatar for a room the user is invited to 1`] = `
|
||||||
|
<div>
|
||||||
|
<span
|
||||||
|
aria-label="Avatar"
|
||||||
|
class="_avatar_1qbcf_8 mx_BaseAvatar"
|
||||||
|
data-color="6"
|
||||||
|
data-testid="avatar-img"
|
||||||
|
data-type="round"
|
||||||
|
style="--cpd-avatar-size: 36px;"
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
alt=""
|
||||||
|
class="_image_1qbcf_41"
|
||||||
|
data-type="round"
|
||||||
|
height="36px"
|
||||||
|
loading="lazy"
|
||||||
|
referrerpolicy="no-referrer"
|
||||||
|
src="http://this.is.a.url/example.com/foobar"
|
||||||
|
width="36px"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
exports[`RoomAvatar should render as expected for a DM room 1`] = `
|
exports[`RoomAvatar should render as expected for a DM room 1`] = `
|
||||||
<div>
|
<div>
|
||||||
<span
|
<span
|
||||||
|
|||||||
+214
-187
@@ -95,6 +95,33 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="mx_SettingsFlag"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="mx_SettingsFlag_label"
|
||||||
|
for="mx_SettingsFlag_QgU2PomxwKpa"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="mx_SettingsFlag_labelText"
|
||||||
|
>
|
||||||
|
Show avatars of rooms you have been invited to
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
aria-checked="true"
|
||||||
|
aria-disabled="true"
|
||||||
|
aria-label="Show avatars of rooms you have been invited to"
|
||||||
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
|
id="mx_SettingsFlag_QgU2PomxwKpa"
|
||||||
|
role="switch"
|
||||||
|
tabindex="0"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mx_ToggleSwitch_ball"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -117,7 +144,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_QgU2PomxwKpa"
|
for="mx_SettingsFlag_6hpi3YEetmBG"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -135,7 +162,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show all rooms in Home"
|
aria-label="Show all rooms in Home"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_QgU2PomxwKpa"
|
id="mx_SettingsFlag_6hpi3YEetmBG"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -185,7 +212,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_6hpi3YEetmBG"
|
for="mx_SettingsFlag_4yVCeEefiPqp"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -198,7 +225,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Use Ctrl + F to search timeline"
|
aria-label="Use Ctrl + F to search timeline"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_6hpi3YEetmBG"
|
id="mx_SettingsFlag_4yVCeEefiPqp"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -258,7 +285,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_4yVCeEefiPqp"
|
for="mx_SettingsFlag_MRMwbPDmfGtm"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -271,33 +298,6 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show timestamps in 12 hour format (e.g. 2:30pm)"
|
aria-label="Show timestamps in 12 hour format (e.g. 2:30pm)"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_4yVCeEefiPqp"
|
|
||||||
role="switch"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="mx_ToggleSwitch_ball"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="mx_SettingsFlag"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="mx_SettingsFlag_label"
|
|
||||||
for="mx_SettingsFlag_MRMwbPDmfGtm"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="mx_SettingsFlag_labelText"
|
|
||||||
>
|
|
||||||
Always show message timestamps
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
<div
|
|
||||||
aria-checked="false"
|
|
||||||
aria-disabled="true"
|
|
||||||
aria-label="Always show message timestamps"
|
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
|
||||||
id="mx_SettingsFlag_MRMwbPDmfGtm"
|
id="mx_SettingsFlag_MRMwbPDmfGtm"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@@ -313,6 +313,33 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_GQvdMWe954DV"
|
for="mx_SettingsFlag_GQvdMWe954DV"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="mx_SettingsFlag_labelText"
|
||||||
|
>
|
||||||
|
Always show message timestamps
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
aria-checked="false"
|
||||||
|
aria-disabled="true"
|
||||||
|
aria-label="Always show message timestamps"
|
||||||
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
|
id="mx_SettingsFlag_GQvdMWe954DV"
|
||||||
|
role="switch"
|
||||||
|
tabindex="0"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mx_ToggleSwitch_ball"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="mx_SettingsFlag"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="mx_SettingsFlag_label"
|
||||||
|
for="mx_SettingsFlag_IAu5CsiHRD7n"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -325,7 +352,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Publish timezone on public profile"
|
aria-label="Publish timezone on public profile"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_GQvdMWe954DV"
|
id="mx_SettingsFlag_IAu5CsiHRD7n"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -365,7 +392,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_IAu5CsiHRD7n"
|
for="mx_SettingsFlag_yrA2ohjWVJIP"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -378,7 +405,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Send read receipts"
|
aria-label="Send read receipts"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_IAu5CsiHRD7n"
|
id="mx_SettingsFlag_yrA2ohjWVJIP"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -392,7 +419,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_yrA2ohjWVJIP"
|
for="mx_SettingsFlag_auy1OmnTidX4"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -405,7 +432,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Send typing notifications"
|
aria-label="Send typing notifications"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_yrA2ohjWVJIP"
|
id="mx_SettingsFlag_auy1OmnTidX4"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -436,7 +463,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_auy1OmnTidX4"
|
for="mx_SettingsFlag_ePDS0OpWwAHG"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -449,7 +476,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Automatically replace plain text Emoji"
|
aria-label="Automatically replace plain text Emoji"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_auy1OmnTidX4"
|
id="mx_SettingsFlag_ePDS0OpWwAHG"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -463,7 +490,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_ePDS0OpWwAHG"
|
for="mx_SettingsFlag_75JNTNkNU64r"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -487,33 +514,6 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Enable Markdown"
|
aria-label="Enable Markdown"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_ePDS0OpWwAHG"
|
|
||||||
role="switch"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="mx_ToggleSwitch_ball"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="mx_SettingsFlag"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="mx_SettingsFlag_label"
|
|
||||||
for="mx_SettingsFlag_75JNTNkNU64r"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="mx_SettingsFlag_labelText"
|
|
||||||
>
|
|
||||||
Enable Emoji suggestions while typing
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
<div
|
|
||||||
aria-checked="true"
|
|
||||||
aria-disabled="true"
|
|
||||||
aria-label="Enable Emoji suggestions while typing"
|
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
|
||||||
id="mx_SettingsFlag_75JNTNkNU64r"
|
id="mx_SettingsFlag_75JNTNkNU64r"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@@ -533,14 +533,14 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Use Ctrl + Enter to send a message
|
Enable Emoji suggestions while typing
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="false"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Use Ctrl + Enter to send a message"
|
aria-label="Enable Emoji suggestions while typing"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_aTLcRsQRlYy7"
|
id="mx_SettingsFlag_aTLcRsQRlYy7"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@@ -560,13 +560,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Surround selected text when typing special characters
|
Use Ctrl + Enter to send a message
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Surround selected text when typing special characters"
|
aria-label="Use Ctrl + Enter to send a message"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_5nfv5bOEPN1s"
|
id="mx_SettingsFlag_5nfv5bOEPN1s"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -587,14 +587,14 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Show stickers button
|
Surround selected text when typing special characters
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="false"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show stickers button"
|
aria-label="Surround selected text when typing special characters"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_u1JYVtOyR5kb"
|
id="mx_SettingsFlag_u1JYVtOyR5kb"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@@ -610,6 +610,33 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_u3pEwuLn9Enn"
|
for="mx_SettingsFlag_u3pEwuLn9Enn"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="mx_SettingsFlag_labelText"
|
||||||
|
>
|
||||||
|
Show stickers button
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
aria-checked="true"
|
||||||
|
aria-disabled="true"
|
||||||
|
aria-label="Show stickers button"
|
||||||
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
|
id="mx_SettingsFlag_u3pEwuLn9Enn"
|
||||||
|
role="switch"
|
||||||
|
tabindex="0"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mx_ToggleSwitch_ball"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="mx_SettingsFlag"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="mx_SettingsFlag_label"
|
||||||
|
for="mx_SettingsFlag_YuxfFEpOsztW"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -622,7 +649,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Insert a trailing colon after user mentions at the start of a message"
|
aria-label="Insert a trailing colon after user mentions at the start of a message"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_u3pEwuLn9Enn"
|
id="mx_SettingsFlag_YuxfFEpOsztW"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -653,7 +680,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_YuxfFEpOsztW"
|
for="mx_SettingsFlag_hQkBerF1ejc4"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -666,33 +693,6 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Enable automatic language detection for syntax highlighting"
|
aria-label="Enable automatic language detection for syntax highlighting"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_YuxfFEpOsztW"
|
|
||||||
role="switch"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="mx_ToggleSwitch_ball"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="mx_SettingsFlag"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="mx_SettingsFlag_label"
|
|
||||||
for="mx_SettingsFlag_hQkBerF1ejc4"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="mx_SettingsFlag_labelText"
|
|
||||||
>
|
|
||||||
Expand code blocks by default
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
<div
|
|
||||||
aria-checked="false"
|
|
||||||
aria-disabled="true"
|
|
||||||
aria-label="Expand code blocks by default"
|
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
|
||||||
id="mx_SettingsFlag_hQkBerF1ejc4"
|
id="mx_SettingsFlag_hQkBerF1ejc4"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@@ -708,6 +708,33 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_GFes1UFzOK2n"
|
for="mx_SettingsFlag_GFes1UFzOK2n"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="mx_SettingsFlag_labelText"
|
||||||
|
>
|
||||||
|
Expand code blocks by default
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
aria-checked="false"
|
||||||
|
aria-disabled="true"
|
||||||
|
aria-label="Expand code blocks by default"
|
||||||
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
|
id="mx_SettingsFlag_GFes1UFzOK2n"
|
||||||
|
role="switch"
|
||||||
|
tabindex="0"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mx_ToggleSwitch_ball"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="mx_SettingsFlag"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="mx_SettingsFlag_label"
|
||||||
|
for="mx_SettingsFlag_vfGFMldL2r2v"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -720,7 +747,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show line numbers in code blocks"
|
aria-label="Show line numbers in code blocks"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_GFes1UFzOK2n"
|
id="mx_SettingsFlag_vfGFMldL2r2v"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -751,7 +778,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_vfGFMldL2r2v"
|
for="mx_SettingsFlag_bsSwicmKUiOB"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -764,33 +791,6 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Enable inline URL previews by default"
|
aria-label="Enable inline URL previews by default"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_vfGFMldL2r2v"
|
|
||||||
role="switch"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="mx_ToggleSwitch_ball"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="mx_SettingsFlag"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="mx_SettingsFlag_label"
|
|
||||||
for="mx_SettingsFlag_bsSwicmKUiOB"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="mx_SettingsFlag_labelText"
|
|
||||||
>
|
|
||||||
Autoplay GIFs
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
<div
|
|
||||||
aria-checked="false"
|
|
||||||
aria-disabled="true"
|
|
||||||
aria-label="Autoplay GIFs"
|
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
|
||||||
id="mx_SettingsFlag_bsSwicmKUiOB"
|
id="mx_SettingsFlag_bsSwicmKUiOB"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@@ -810,13 +810,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Autoplay videos
|
Autoplay GIFs
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="false"
|
aria-checked="false"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Autoplay videos"
|
aria-label="Autoplay GIFs"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_dvqsxEaZtl3A"
|
id="mx_SettingsFlag_dvqsxEaZtl3A"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -833,6 +833,33 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_NIiWzqsApP1c"
|
for="mx_SettingsFlag_NIiWzqsApP1c"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="mx_SettingsFlag_labelText"
|
||||||
|
>
|
||||||
|
Autoplay videos
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
aria-checked="false"
|
||||||
|
aria-disabled="true"
|
||||||
|
aria-label="Autoplay videos"
|
||||||
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
|
id="mx_SettingsFlag_NIiWzqsApP1c"
|
||||||
|
role="switch"
|
||||||
|
tabindex="0"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mx_ToggleSwitch_ball"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="mx_SettingsFlag"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="mx_SettingsFlag_label"
|
||||||
|
for="mx_SettingsFlag_q1SIAPqLMVXh"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -845,7 +872,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show previews/thumbnails for images"
|
aria-label="Show previews/thumbnails for images"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_NIiWzqsApP1c"
|
id="mx_SettingsFlag_q1SIAPqLMVXh"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -876,7 +903,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_q1SIAPqLMVXh"
|
for="mx_SettingsFlag_dXFDGgBsKXay"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -889,33 +916,6 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show typing notifications"
|
aria-label="Show typing notifications"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_q1SIAPqLMVXh"
|
|
||||||
role="switch"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="mx_ToggleSwitch_ball"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="mx_SettingsFlag"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="mx_SettingsFlag_label"
|
|
||||||
for="mx_SettingsFlag_dXFDGgBsKXay"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="mx_SettingsFlag_labelText"
|
|
||||||
>
|
|
||||||
Show a placeholder for removed messages
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
<div
|
|
||||||
aria-checked="true"
|
|
||||||
aria-disabled="true"
|
|
||||||
aria-label="Show a placeholder for removed messages"
|
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
|
||||||
id="mx_SettingsFlag_dXFDGgBsKXay"
|
id="mx_SettingsFlag_dXFDGgBsKXay"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
@@ -935,13 +935,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Show read receipts sent by other users
|
Show a placeholder for removed messages
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show read receipts sent by other users"
|
aria-label="Show a placeholder for removed messages"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_7Az0xw4Bs4Tt"
|
id="mx_SettingsFlag_7Az0xw4Bs4Tt"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -962,13 +962,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Show join/leave messages (invites/removes/bans unaffected)
|
Show read receipts sent by other users
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show join/leave messages (invites/removes/bans unaffected)"
|
aria-label="Show read receipts sent by other users"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_8jmzPIlPoBCv"
|
id="mx_SettingsFlag_8jmzPIlPoBCv"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -989,13 +989,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Show display name changes
|
Show join/leave messages (invites/removes/bans unaffected)
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show display name changes"
|
aria-label="Show join/leave messages (invites/removes/bans unaffected)"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_enFRaTjdsFou"
|
id="mx_SettingsFlag_enFRaTjdsFou"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -1016,13 +1016,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Show chat effects (animations when receiving e.g. confetti)
|
Show display name changes
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show chat effects (animations when receiving e.g. confetti)"
|
aria-label="Show display name changes"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_bfwnd5rz4XNX"
|
id="mx_SettingsFlag_bfwnd5rz4XNX"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -1043,13 +1043,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Show profile picture changes
|
Show chat effects (animations when receiving e.g. confetti)
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show profile picture changes"
|
aria-label="Show chat effects (animations when receiving e.g. confetti)"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_gs5uWEzYzZrS"
|
id="mx_SettingsFlag_gs5uWEzYzZrS"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -1070,13 +1070,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Show avatars in user, room and event mentions
|
Show profile picture changes
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show avatars in user, room and event mentions"
|
aria-label="Show profile picture changes"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_qWg7OgID1yRR"
|
id="mx_SettingsFlag_qWg7OgID1yRR"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -1097,13 +1097,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Enable big emoji in chat
|
Show avatars in user, room and event mentions
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Enable big emoji in chat"
|
aria-label="Show avatars in user, room and event mentions"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_pOPewl7rtMbV"
|
id="mx_SettingsFlag_pOPewl7rtMbV"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -1124,13 +1124,13 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
>
|
>
|
||||||
Jump to the bottom of the timeline when you send a message
|
Enable big emoji in chat
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
aria-checked="true"
|
aria-checked="true"
|
||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Jump to the bottom of the timeline when you send a message"
|
aria-label="Enable big emoji in chat"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_cmt3PZSyNp3v"
|
id="mx_SettingsFlag_cmt3PZSyNp3v"
|
||||||
role="switch"
|
role="switch"
|
||||||
@@ -1147,6 +1147,33 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_dJJz3lHUv9XX"
|
for="mx_SettingsFlag_dJJz3lHUv9XX"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="mx_SettingsFlag_labelText"
|
||||||
|
>
|
||||||
|
Jump to the bottom of the timeline when you send a message
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
aria-checked="true"
|
||||||
|
aria-disabled="true"
|
||||||
|
aria-label="Jump to the bottom of the timeline when you send a message"
|
||||||
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
|
id="mx_SettingsFlag_dJJz3lHUv9XX"
|
||||||
|
role="switch"
|
||||||
|
tabindex="0"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="mx_ToggleSwitch_ball"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="mx_SettingsFlag"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="mx_SettingsFlag_label"
|
||||||
|
for="mx_SettingsFlag_SBSSOZDRlzlA"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -1159,7 +1186,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show current profile picture and name for users in message history"
|
aria-label="Show current profile picture and name for users in message history"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_dJJz3lHUv9XX"
|
id="mx_SettingsFlag_SBSSOZDRlzlA"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -1190,7 +1217,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_SBSSOZDRlzlA"
|
for="mx_SettingsFlag_FLEpLCb0jpp6"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -1203,7 +1230,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Show NSFW content"
|
aria-label="Show NSFW content"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch"
|
class="mx_AccessibleButton mx_ToggleSwitch"
|
||||||
id="mx_SettingsFlag_SBSSOZDRlzlA"
|
id="mx_SettingsFlag_FLEpLCb0jpp6"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
@@ -1234,7 +1261,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="mx_SettingsFlag_label"
|
class="mx_SettingsFlag_label"
|
||||||
for="mx_SettingsFlag_FLEpLCb0jpp6"
|
for="mx_SettingsFlag_NQFWldEwbV3q"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_SettingsFlag_labelText"
|
class="mx_SettingsFlag_labelText"
|
||||||
@@ -1247,7 +1274,7 @@ exports[`PreferencesUserSettingsTab should render 1`] = `
|
|||||||
aria-disabled="true"
|
aria-disabled="true"
|
||||||
aria-label="Prompt before sending invites to potentially invalid matrix IDs"
|
aria-label="Prompt before sending invites to potentially invalid matrix IDs"
|
||||||
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on"
|
||||||
id="mx_SettingsFlag_FLEpLCb0jpp6"
|
id="mx_SettingsFlag_NQFWldEwbV3q"
|
||||||
role="switch"
|
role="switch"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user