Distinguish between files sent by client and files sent in response
parent
37f7af3778
commit
48b8cdf26c
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue