enhance(sw): 푸시 알림 개선
리액션 알림 디자인 개선
This commit is contained in:
parent
d625ee7663
commit
da508657ef
|
@ -163,7 +163,8 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
|
||||||
|
|
||||||
const tag = `reaction:${data.body.note.id}`;
|
const tag = `reaction:${data.body.note.id}`;
|
||||||
return [t('_notification.youGotReact', { name: getUserName(data.body.user) }), {
|
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,
|
icon: data.body.user.avatarUrl,
|
||||||
tag,
|
tag,
|
||||||
badge,
|
badge,
|
||||||
|
|
Loading…
Reference in a new issue