Skip to content

Commit

Permalink
Merge branch 'develop' into fix_messages_search
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 authored Aug 16, 2024
2 parents cc06e37 + 5b8f6a0 commit db5ea81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sw/src/scripts/create-notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif

const tag = `reaction:${data.body.note.id}`;
return [t('_notification.youGotReact', { name: getUserName(data.body.user) }), {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, no-constant-binary-expression
body: (reaction1.startsWith(':') ? `:${ reaction }:` : `${ reaction }`) + '\n' + data.body.note.text ?? '',
icon: data.body.user.avatarUrl,
tag,
Expand Down

0 comments on commit db5ea81

Please sign in to comment.