Emojify group title updates
This commit is contained in:
parent
5eef2ee299
commit
4d4c522c7f
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ import React from 'react';
|
||||||
import { compact, flatten } from 'lodash';
|
import { compact, flatten } from 'lodash';
|
||||||
|
|
||||||
import { ContactName } from './ContactName';
|
import { ContactName } from './ContactName';
|
||||||
|
import { Emojify } from './Emojify';
|
||||||
import { Intl } from '../Intl';
|
import { Intl } from '../Intl';
|
||||||
import { LocalizerType } from '../../types/Util';
|
import { LocalizerType } from '../../types/Util';
|
||||||
|
|
||||||
|
@ -59,7 +60,7 @@ export class GroupNotification extends React.Component<Props> {
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'name':
|
case 'name':
|
||||||
return i18n('titleIsNow', [newName || '']);
|
return <Emojify text={i18n('titleIsNow', [newName || ''])} />;
|
||||||
case 'add':
|
case 'add':
|
||||||
if (!contacts || !contacts.length) {
|
if (!contacts || !contacts.length) {
|
||||||
throw new Error('Group update is missing contacts');
|
throw new Error('Group update is missing contacts');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue