Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 05c2ee0

Browse files
authored
Disable sound for DMs checkbox when DM notifications are disabled (#11210)
1 parent aa818cd commit 05c2ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/settings/notifications/NotificationSettings2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default function NotificationSettings2(): JSX.Element {
180180
<LabelledCheckbox
181181
label="People"
182182
value={settings.sound.people !== undefined}
183-
disabled={disabled}
183+
disabled={disabled || settings.defaultLevels.dm === RoomNotifState.MentionsOnly}
184184
onChange={(value) => {
185185
reconcile({
186186
...model!,

0 commit comments

Comments
 (0)