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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user