1
0
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:
Marie
2024-11-04 11:22:37 +01:00
parent 170093f2a2
commit 1d3c825398
13 changed files with 77 additions and 9 deletions

View File

@@ -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;
}