enhance(sw): 푸시 알림 개선

리액션 알림 디자인 개선
This commit is contained in:
NoriDev 2024-02-07 17:03:48 +09:00
parent d625ee7663
commit da508657ef

View file

@ -163,7 +163,8 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
const tag = `reaction:${data.body.note.id}`;
return [t('_notification.youGotReact', { name: getUserName(data.body.user) }), {
body: reaction + '\n' + data.body.note.text ?? '',
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
body: `:${ reaction }:` + '\n' + data.body.note.text ?? '',
icon: data.body.user.avatarUrl,
tag,
badge,