This commit is contained in:
tamaina 2021-09-21 02:39:49 +09:00
parent 25f92c60d4
commit dbafb501a9

View file

@ -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;