Skip to content

Commit f9a64a3

Browse files
authored
release: v2025.2.0-kakurega.1.40.2 (#170)
2 parents bb6b434 + 5605df6 commit f9a64a3

File tree

6 files changed

+25
-5
lines changed

6 files changed

+25
-5
lines changed

CHANGELOG_KAKUREGA.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 1.40.2
2+
Release: 2025/02/12
3+
Base: 2025.2.0
4+
5+
### 変更
6+
- SW: 対応していない通知が届いた際の挙動をユーザーフレンドリーに
7+
8+
## 1.40.1
9+
Release: 2025/02/05
10+
Base: 2025.2.0
11+
12+
### 変更
13+
- Misskey 2025.2.0をマージ
14+
115
## 1.40.0
216
Release: 2025/02/05
317
Base: 2025.1.0

locales/en-US.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2419,6 +2419,7 @@ _relayStatus:
24192419
accepted: "Accepted"
24202420
rejected: "Rejected"
24212421
_notification:
2422+
youHaveNewNotification: "You have a new notification"
24222423
fileUploaded: "File successfully uploaded"
24232424
youGotMention: "{name} mentioned you"
24242425
youGotReply: "{name} replied to you"

locales/index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -9940,6 +9940,10 @@ export interface Locale extends ILocale {
99409940
"rejected": string;
99419941
};
99429942
"_notification": {
9943+
/**
9944+
* 新しい通知があります
9945+
*/
9946+
"youHaveNewNotification": string;
99439947
/**
99449948
* ファイルがアップロードされました
99459949
*/

locales/ja-JP.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2626,6 +2626,7 @@ _relayStatus:
26262626
rejected: "拒否済み"
26272627

26282628
_notification:
2629+
youHaveNewNotification: "新しい通知があります"
26292630
fileUploaded: "ファイルがアップロードされました"
26302631
youGotMention: "{name}からのメンション"
26312632
youGotReply: "{name}からのリプライ"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "misskey",
3-
"version": "2025.2.0-kakurega.1.40.1",
3+
"version": "2025.2.0-kakurega.1.40.2",
44
"codename": "nasubi",
55
"repository": {
66
"type": "git",

packages/sw/src/scripts/create-notification.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function createNotification<K extends keyof PushNotificationDataMap
3535
return globalThis.registration.showNotification(...n);
3636
} else {
3737
console.error('Could not compose notification', data);
38-
return createEmptyNotification();
38+
return createEmptyNotification(data.type);
3939
}
4040
}
4141

@@ -286,16 +286,16 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
286286
}
287287
}
288288

289-
export async function createEmptyNotification(): Promise<void> {
289+
export async function createEmptyNotification(type?: string): Promise<void> {
290290
return new Promise<void>(async res => {
291291
const i18n = await (swLang.i18n ?? swLang.fetchLocale());
292292

293293
await globalThis.registration.showNotification(
294294
(new URL(origin)).host,
295295
{
296-
body: `Misskey v${_VERSION_}`,
296+
body: `${i18n.ts._notification.youHaveNewNotification} (${type != null ? `${type}/` : ''}v${_VERSION_})`,
297297
silent: true,
298-
badge: iconUrl('null'),
298+
badge: iconUrl('bell'),
299299
tag: 'read_notification',
300300
actions: [
301301
{

0 commit comments

Comments
 (0)