{hasPendingChanges && model !== null && (
}
action={_t("Proceed")}
onAction={() => reconcile(model!)}
>
{_t(
"
Update:" +
"We’ve simplified Notifications Settings to make options easier to find. " +
"Some custom settings you’ve chosen in the past are not shown here, but they’re still active. " +
"If you proceed, some of your settings may change. " +
"
Learn more",
{},
{
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)
}
/>
{
reconcile({
...model!,
defaultLevels: {
...model!.defaultLevels,
dm:
value !== NotificationDefaultLevels.MentionsKeywords
? RoomNotifState.AllMessages
: RoomNotifState.MentionsOnly,
room:
value === NotificationDefaultLevels.AllMessages
? RoomNotifState.AllMessages
: RoomNotifState.MentionsOnly,
},
});
}}
/>
{
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,
},
});
}}
/>
when keywords are used in a room.",
{},
{
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("Keyword")}
placeholder={_t("New keyword")}
/>
{hasUnreadNotifications && (
{
setUpdatingUnread(true);
await clearAllNotifications(cli);
setUpdatingUnread(false);
}}
>
{_t("Mark all messages as read")}
)}
{
reconcile(DefaultNotificationSettings);
}}
>
{_t("Reset to default settings")}
);
}