mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +00:00
upd: add notification for when scheduled note gets posted
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user