Distinguish between files sent by client and files sent in response

master
Torjus 2018-07-30 11:44:36 +02:00
parent 37f7af3778
commit 48b8cdf26c
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ class FileChatEntry extends Component
<div>
{!this.state.active && !this.state.files && (
<Fragment>
<p>A new file was shared.</p>
{this.props.message.sender === 'client' ? (
<p>You shared a file.</p>
) : (
<p>A new file was shared.</p>
)}
<p>{magnet.decode(this.props.message.file.magnet).dn}</p>