refactor
This commit is contained in:
parent
25f92c60d4
commit
dbafb501a9
|
@ -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 New Issue