Distinguish between files sent by client and files sent in response
This commit is contained in:
@@ -95,7 +95,11 @@ class FileChatEntry extends Component
|
|||||||
<div>
|
<div>
|
||||||
{!this.state.active && !this.state.files && (
|
{!this.state.active && !this.state.files && (
|
||||||
<Fragment>
|
<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>
|
<p>{magnet.decode(this.props.message.file.magnet).dn}</p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user