drop group (#9942)

* drop group

* Update operations.ts
This commit is contained in:
syuilo 2023-02-15 13:37:18 +09:00 committed by GitHub
parent 8f2049bcd2
commit 8caf288ac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 66 additions and 1585 deletions

View file

@ -209,23 +209,6 @@ async function composeNotification(data: pushNotificationDataMap[keyof pushNotif
data,
}];
case 'groupInvited':
return [t('_notification.youWereInvitedToGroup', { userName: getUserName(data.body.user) }), {
body: data.body.invitation.group.name,
badge: iconUrl('users'),
data,
actions: [
{
action: 'accept',
title: t('accept'),
},
{
action: 'reject',
title: t('reject'),
},
],
}];
case 'app':
return [data.body.header ?? data.body.body, {
body: data.body.header ? data.body.body : '',