fix
This commit is contained in:
parent
bfbc3811ed
commit
25f92c60d4
|
@ -109,7 +109,7 @@ self.addEventListener('notificationclick', <K extends keyof pushNotificationData
|
||||||
case 'notification':
|
case 'notification':
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'follow':
|
case 'follow':
|
||||||
if ('userId' in data.body)await swos.api('following/create', id, { userId: data.body.userId });
|
if ('userId' in data.body) await swos.api('following/create', id, { userId: data.body.userId });
|
||||||
break;
|
break;
|
||||||
case 'showUser':
|
case 'showUser':
|
||||||
if ('user' in data.body) client = await swos.openUser(getAcct(data.body.user), id);
|
if ('user' in data.body) client = await swos.openUser(getAcct(data.body.user), id);
|
||||||
|
|
Loading…
Reference in a new issue