1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00

upd: add notification for failures, add reasons for failure, apply suggestions

This commit is contained in:
Marie
2024-11-03 17:59:50 +01:00
parent f08d1ec38f
commit fc9d777dc3
17 changed files with 110 additions and 28 deletions

View File

@@ -258,6 +258,13 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
data,
}];
case 'scheduledNoteFailed':
return [i18n.ts._notification.scheduledNoteFailed, {
body: data.body.reason,
badge: iconUrl('bell'),
data,
}];
default:
return null;
}