Skip to content

Commit 7da688b

Browse files
committed
Revert "remove this"
This reverts commit 885df39.
1 parent 885df39 commit 7da688b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

client/src/lib/components/Settings.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,13 @@
211211
notificationsDisabled = disabled;
212212
try {
213213
if (disabled) {
214-
214+
await API.setGlobalCalendarPreference({ reminder_settings: [] });
215215
snackbar('All notifications disabled', undefined, true);
216216
} else {
217-
217+
await API.setGlobalCalendarPreference({
218+
reminder_settings: [{ time: "30", type: "minutes", method: "notification" }]
219+
});
220+
snackbar('Default notifications restored (30 min before)', undefined, true);
218221
}
219222
} catch (e) {
220223
console.error('Failed to update notification settings:', e);

0 commit comments

Comments
 (0)