From 48b8cdf26c34de3f2d771b6afab2e3a82a478d4d Mon Sep 17 00:00:00 2001 From: Torjus Date: Mon, 30 Jul 2018 11:44:36 +0200 Subject: [PATCH] Distinguish between files sent by client and files sent in response --- app/lib/components/Chat/FileChatEntry.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/lib/components/Chat/FileChatEntry.jsx b/app/lib/components/Chat/FileChatEntry.jsx index f0e0c40..e5c23f7 100644 --- a/app/lib/components/Chat/FileChatEntry.jsx +++ b/app/lib/components/Chat/FileChatEntry.jsx @@ -95,7 +95,11 @@ class FileChatEntry extends Component
{!this.state.active && !this.state.files && ( -

A new file was shared.

+ {this.props.message.sender === 'client' ? ( +

You shared a file.

+ ) : ( +

A new file was shared.

+ )}

{magnet.decode(this.props.message.file.magnet).dn}