Support for blocking groups on mobile, via group/blocked syncs

This commit is contained in:
Scott Nonnenberg 2018-09-13 12:57:07 -07:00
parent cfe561b3eb
commit 9c399624cc
8 changed files with 89 additions and 15 deletions

View file

@ -126,12 +126,6 @@
{
type: 'remove',
isMe: true,
contacts: [
{
phoneNumber: '(202) 555-1000',
profileName: 'Mr. Fire',
},
],
},
]}
i18n={util.i18n}

View file

@ -71,14 +71,14 @@ export class GroupNotification extends React.Component<Props> {
/>
);
case 'remove':
if (!contacts || !contacts.length) {
throw new Error('Group update is missing contacts');
}
if (isMe) {
return i18n('youLeftTheGroup');
}
if (!contacts || !contacts.length) {
throw new Error('Group update is missing contacts');
}
return (
<Intl
i18n={i18n}