upd: add notification for when scheduled note gets posted
This commit is contained in:
parent
e62c78073a
commit
de9fbd32cd
13 changed files with 77 additions and 9 deletions
|
|
@ -265,6 +265,14 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
|
|||
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