From da508657efb9bcd58f48f6139cfd32c72734a5a2 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Wed, 7 Feb 2024 17:03:48 +0900 Subject: [PATCH] =?UTF-8?q?enhance(sw):=20=ED=91=B8=EC=8B=9C=20=EC=95=8C?= =?UTF-8?q?=EB=A6=BC=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 리액션 알림 디자인 개선 --- packages/sw/src/scripts/create-notification.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 042343a0f3..84b12b328f 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -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,