Chats: don't crash when there's an image post, fixes #369

This commit is contained in:
Alex Gleason 2020-08-29 22:57:26 -05:00
parent a419c5da34
commit e3e57f8dc7
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class ChatMessageList extends ImmutablePureComponent {
<span <span
title={this.getFormattedTimestamp(chatMessage)} title={this.getFormattedTimestamp(chatMessage)}
className='chat-message__bubble' className='chat-message__bubble'
dangerouslySetInnerHTML={{ __html: emojify(chatMessage.get('content')) }} dangerouslySetInnerHTML={{ __html: emojify(chatMessage.get('content') || '') }}
/> />
</div> </div>
))} ))}