Distinguish between files sent by client and files sent in response

This commit is contained in:
Torjus
2018-07-30 11:44:36 +02:00
parent 37f7af3778
commit 48b8cdf26c
+5 -1
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>