Merge branch 'develop' into feature/2024.10
This commit is contained in:
commit
6d4ae93592
54 changed files with 1630 additions and 20 deletions
|
|
@ -264,6 +264,21 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
|
|||
data,
|
||||
}];
|
||||
|
||||
case 'scheduledNoteFailed':
|
||||
return [i18n.ts._notification.scheduledNoteFailed, {
|
||||
body: data.body.reason,
|
||||
badge: iconUrl('bell'),
|
||||
data,
|
||||
}];
|
||||
|
||||
case 'scheduledNotePosted':
|
||||
return [i18n.ts._notification.scheduledNotePosted, {
|
||||
body: data.body.note.text ?? '',
|
||||
icon: data.body.user.avatarUrl ?? undefined,
|
||||
badge: iconUrl('bell'),
|
||||
data,
|
||||
}];
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue