Add avatars to user list

This commit is contained in:
Torjus
2018-07-18 13:59:52 +02:00
parent c416d0c402
commit 3a43443011
7 changed files with 51 additions and 19 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ class MessageList extends Component
{
const messageTime = new Date(message.time);
const picture = message.sender === 'response' ?
message.picture : this.props.myPicture;
const picture = (message.sender === 'response' ?
message.picture : this.props.myPicture) || 'resources/images/avatar-empty.jpeg';
return (
<div className='message' key={i}>