{hasPendingChanges && model !== null && (
}
action={_t("action|proceed")}
onAction={() => reconcile(model!)}
>
{_t(
"settings|notifications|labs_notice_prompt",
{},
{
strong: boldText,
a: helpLink,
},
)}
)}
{
reconcile({
...model!,
globalMute: !value,
});
}}
/>
SettingsStore.setValue("notificationsEnabled", null, SettingLevel.DEVICE, value)
}
/>
SettingsStore.setValue("notificationBodyEnabled", null, SettingLevel.DEVICE, value)
}
/>
SettingsStore.setValue("audioNotificationsEnabled", null, SettingLevel.DEVICE, value)
}
/>
}
description={_t("settings|notifications|default_setting_description")}
>
{
reconcile({
...model!,
defaultLevels: {
...model!.defaultLevels,
dm:
value !== NotificationDefaultLevels.MentionsKeywords
? RoomNotifState.AllMessages
: RoomNotifState.MentionsOnly,
room:
value === NotificationDefaultLevels.AllMessages
? RoomNotifState.AllMessages
: RoomNotifState.MentionsOnly,
},
});
}}
/>
}
description={_t("settings|notifications|play_sound_for_description")}
>
{
reconcile({
...model!,
sound: {
...model!.sound,
people: value ? "default" : undefined,
},
});
}}
/>
{
reconcile({
...model!,
sound: {
...model!.sound,
mentions: value ? "default" : undefined,
},
});
}}
/>
{
reconcile({
...model!,
sound: {
...model!.sound,
calls: value ? "ring" : undefined,
},
});
}}
/>
}
>
{
reconcile({
...model!,
activity: {
...model!.activity,
invite: value,
},
});
}}
/>
{
reconcile({
...model!,
activity: {
...model!.activity,
status_event: value,
},
});
}}
/>
{
reconcile({
...model!,
activity: {
...model!.activity,
bot_notices: value,
},
});
}}
/>
}
description={_t(
"settings|notifications|keywords",
{},
{
badge: (
),
},
)}
>
{
reconcile({
...model!,
mentions: {
...model!.mentions,
room: value,
},
});
}}
/>
{
reconcile({
...model!,
mentions: {
...model!.mentions,
user: value,
},
});
}}
/>
{
reconcile({
...model!,
mentions: {
...model!.mentions,
keywords: value,
},
});
}}
/>
{
reconcile({
...model!,
keywords: [keyword, ...model!.keywords],
});
}}
onRemove={(keyword) => {
reconcile({
...model!,
keywords: model!.keywords.filter((it) => it !== keyword),
});
}}
label={_t("notifications|keyword")}
placeholder={_t("notifications|keyword_new")}
/>
{hasUnreadNotifications && (
{
setUpdatingUnread(true);
await clearAllNotifications(cli);
setUpdatingUnread(false);
}}
>
{_t("settings|notifications|quick_actions_mark_all_read")}
)}
{
reconcile(DefaultNotificationSettings);
}}
>
{_t("settings|notifications|quick_actions_reset")}
);
}