Skip to content
Snippets Groups Projects
Unverified Commit 52b44035 authored by yukineko's avatar yukineko Committed by GitHub
Browse files

fix(sw): アンケート終了時のプッシュ通知が正しく表示されない問題を修正 (#11278)

* fix(sw): アンケート終了時のプッシュ通知が正しく表示されない問題を修正

* update: CHANGELOG.md
parent 866e3f04
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@
- Fix: フォルダーのページネーションが機能しない #11180
- Fix: 長い文章を投稿する際、プレビューが画面からはみ出る問題を修正
- Fix: システムフォント設定が正しく反映されない問題を修正
- Fix: アンケート終了時のプッシュ通知が正しく表示されない問題を修正
### Server
- JSON.parse の回数を削減することで、ストリーミングのパフォーマンスを向上しました
......
......@@ -199,6 +199,13 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
tag: `achievement:${data.body.achievement}`,
}];
case 'pollEnded':
return [t('_notification.pollEnded'), {
body: data.body.note.text ?? '',
badge: iconUrl('chart-arrows'),
data,
}];
case 'app':
return [data.body.header ?? data.body.body, {
body: data.body.header ? data.body.body : '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment