upd: add notification for failures, add reasons for failure, apply suggestions
This commit is contained in:
parent
f08d1ec38f
commit
fc9d777dc3
17 changed files with 110 additions and 28 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue