Emojify group title updates

This commit is contained in:
Ken Powers 2020-02-28 14:11:15 -05:00 committed by GitHub
parent 5eef2ee299
commit 4d4c522c7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@ import React from 'react';
import { compact, flatten } from 'lodash';
import { ContactName } from './ContactName';
import { Emojify } from './Emojify';
import { Intl } from '../Intl';
import { LocalizerType } from '../../types/Util';
@ -59,7 +60,7 @@ export class GroupNotification extends React.Component<Props> {
switch (type) {
case 'name':
return i18n('titleIsNow', [newName || '']);
return <Emojify text={i18n('titleIsNow', [newName || ''])} />;
case 'add':
if (!contacts || !contacts.length) {
throw new Error('Group update is missing contacts');