Disable sound for DMs checkbox when DM notifications are disabled (#11210)

This commit is contained in:
Janne Mareike Koschinski 2023-07-10 14:49:56 +02:00 committed by GitHub
parent aa818cdf85
commit 05c2ee0767
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,7 +180,7 @@ export default function NotificationSettings2(): JSX.Element {
<LabelledCheckbox
label="People"
value={settings.sound.people !== undefined}
disabled={disabled}
disabled={disabled || settings.defaultLevels.dm === RoomNotifState.MentionsOnly}
onChange={(value) => {
reconcile({
...model!,