|
|
@ -48,7 +48,7 @@ function renderChange(change: PropsForGroupUpdateType) {
|
|
|
|
const people = isTypeWithContact(change) ? getPeople(change) : [];
|
|
|
|
const people = isTypeWithContact(change) ? getPeople(change) : [];
|
|
|
|
switch (change.type) {
|
|
|
|
switch (change.type) {
|
|
|
|
case 'name':
|
|
|
|
case 'name':
|
|
|
|
return `${window.i18n('titleIsNow', [change.newName || ''])}.`;
|
|
|
|
return `${window.i18n('titleIsNow', [change.newName || ''])}`;
|
|
|
|
case 'add':
|
|
|
|
case 'add':
|
|
|
|
if (!change.contacts || !change.contacts.length) {
|
|
|
|
if (!change.contacts || !change.contacts.length) {
|
|
|
|
throw new Error('Group update add is missing contacts');
|
|
|
|
throw new Error('Group update add is missing contacts');
|
|
|
|