Permalink
Browse files

feat: and emojify name in MemberInfo

  • Loading branch information...
aviraldg committed Jul 5, 2016
1 parent 020f1f4 commit 6a133bc034745209e84addc76f2cd52831ee4f29
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/components/views/rooms/MemberInfo.js
@@ -32,6 +32,7 @@ var Modal = require("../../../Modal");
var sdk = require('../../../index');
var UserSettingsStore = require('../../../UserSettingsStore');
var createRoom = require('../../../createRoom');
import {emojifyText} from '../../../HtmlUtils';
module.exports = React.createClass({
displayName: 'MemberInfo',
@@ -601,6 +602,8 @@ module.exports = React.createClass({
</div>
}
let memberNameHTML = emojifyText(this.props.member.name);
var MemberAvatar = sdk.getComponent('avatars.MemberAvatar');
var PowerSelector = sdk.getComponent('elements.PowerSelector');
return (
@@ -610,7 +613,7 @@ module.exports = React.createClass({
<MemberAvatar onClick={this.onMemberAvatarClick} member={this.props.member} width={48} height={48} />
</div>
<h2>{ this.props.member.name }</h2>
<h2 dangerouslySetInnerHTML={memberNameHTML}></h2>
<div className="mx_MemberInfo_profile">
<div className="mx_MemberInfo_profileField">

0 comments on commit 6a133bc

Please sign in to comment.