diff --git a/app/components/UserIcon.js b/app/components/UserIcon.js index bab86cd..75ea960 100644 --- a/app/components/UserIcon.js +++ b/app/components/UserIcon.js @@ -1,30 +1,37 @@ import React from'react'; import PropTypes from 'prop-types'; import utils from '../utils'; import { Avatar } from 'react-native-paper'; + const UserIcon = (props) => { const name = props.identity.displayName || props.identity.uri; let initials = name.split(' ', 2).map(x => x[0]).join(''); const color = utils.generateMaterialColor(props.identity.uri)['300']; - if (props.identity.uri === 'anonymous@anonymous.invalid') { + if (props.identity.uri.search('anonymous') !== -1) { return ( ) } + if (props.identity.uri.search('videoconference') !== -1) { + return ( + + ) + } + return ( ); }; UserIcon.propTypes = { identity: PropTypes.object.isRequired, large: PropTypes.bool, card: PropTypes.bool, active: PropTypes.bool }; export default UserIcon;