Fix first channel load scrolling issue on Windows and iOS and add emoji to RHS.

Этот коммит содержится в:
JoramWilander
2015-09-21 11:30:08 -04:00
родитель a35fa9c974
Коммит 3e868a6042
4 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@@ -20,6 +20,7 @@ export default class RhsRootPost extends React.Component {
}
parseEmojis() {
twemoji.parse(React.findDOMNode(this), {size: Constants.EMOJI_SIZE});
global.window.emojify.run(React.findDOMNode(this.refs.message_holder));
}
componentDidMount() {
this.parseEmojis();
@@ -148,6 +149,7 @@ export default class RhsRootPost extends React.Component {
</ul>
<div className='post-body'>
<div
ref='message_holder'
onClick={TextFormatting.handleClick}
dangerouslySetInnerHTML={{__html: TextFormatting.formatText(post.message)}}
/>