mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 19:10:18 +01:00
refactor
This commit is contained in:
parent
25f92c60d4
commit
dbafb501a9
1 changed files with 2 additions and 4 deletions
|
@ -157,12 +157,10 @@ self.addEventListener('notificationclick', <K extends keyof pushNotificationData
|
||||||
default:
|
default:
|
||||||
if ('note' in data.body) {
|
if ('note' in data.body) {
|
||||||
client = await swos.openNote(data.body.note.id, id);
|
client = await swos.openNote(data.body.note.id, id);
|
||||||
break;
|
} else if ('user' in data.body) {
|
||||||
}
|
|
||||||
if ('user' in data.body) {
|
|
||||||
client = await swos.openUser(getAcct(data.body.user), id);
|
client = await swos.openUser(getAcct(data.body.user), id);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue