File tree 6 files changed +25
-5
lines changed
6 files changed +25
-5
lines changed Original file line number Diff line number Diff line change
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
+
1
15
## 1.40.0
2
16
Release: 2025/02/05
3
17
Base: 2025.1.0
Original file line number Diff line number Diff line change @@ -2419,6 +2419,7 @@ _relayStatus:
2419
2419
accepted : " Accepted"
2420
2420
rejected : " Rejected"
2421
2421
_notification :
2422
+ youHaveNewNotification : " You have a new notification"
2422
2423
fileUploaded : " File successfully uploaded"
2423
2424
youGotMention : " {name} mentioned you"
2424
2425
youGotReply : " {name} replied to you"
Original file line number Diff line number Diff line change @@ -9940,6 +9940,10 @@ export interface Locale extends ILocale {
9940
9940
"rejected" : string ;
9941
9941
} ;
9942
9942
"_notification" : {
9943
+ /**
9944
+ * 新しい通知があります
9945
+ */
9946
+ "youHaveNewNotification" : string ;
9943
9947
/**
9944
9948
* ファイルがアップロードされました
9945
9949
*/
Original file line number Diff line number Diff line change @@ -2626,6 +2626,7 @@ _relayStatus:
2626
2626
rejected : " 拒否済み"
2627
2627
2628
2628
_notification :
2629
+ youHaveNewNotification : " 新しい通知があります"
2629
2630
fileUploaded : " ファイルがアップロードされました"
2630
2631
youGotMention : " {name}からのメンション"
2631
2632
youGotReply : " {name}からのリプライ"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " misskey" ,
3
- "version" : " 2025.2.0-kakurega.1.40.1 " ,
3
+ "version" : " 2025.2.0-kakurega.1.40.2 " ,
4
4
"codename" : " nasubi" ,
5
5
"repository" : {
6
6
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export async function createNotification<K extends keyof PushNotificationDataMap
35
35
return globalThis . registration . showNotification ( ...n ) ;
36
36
} else {
37
37
console . error ( 'Could not compose notification' , data ) ;
38
- return createEmptyNotification ( ) ;
38
+ return createEmptyNotification ( data . type ) ;
39
39
}
40
40
}
41
41
@@ -286,16 +286,16 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
286
286
}
287
287
}
288
288
289
- export async function createEmptyNotification ( ) : Promise < void > {
289
+ export async function createEmptyNotification ( type ?: string ) : Promise < void > {
290
290
return new Promise < void > ( async res => {
291
291
const i18n = await ( swLang . i18n ?? swLang . fetchLocale ( ) ) ;
292
292
293
293
await globalThis . registration . showNotification (
294
294
( new URL ( origin ) ) . host ,
295
295
{
296
- body : `Misskey v${ _VERSION_ } ` ,
296
+ body : `${ i18n . ts . _notification . youHaveNewNotification } ( ${ type != null ? ` ${ type } /` : '' } v${ _VERSION_ } ) ` ,
297
297
silent : true ,
298
- badge : iconUrl ( 'null ' ) ,
298
+ badge : iconUrl ( 'bell ' ) ,
299
299
tag : 'read_notification' ,
300
300
actions : [
301
301
{
You can’t perform that action at this time.
0 commit comments