From e9bb24ee38e9881535e85b8376a7531aee615784 Mon Sep 17 00:00:00 2001 From: Ezequiel de Oliveira Date: Tue, 25 Aug 2020 17:09:52 -0300 Subject: [PATCH] [FIX] Wrong date and time shown in file section (#2409) * Adding missing prop to item object Signed-off-by: Ezequiel De Oliveira * Resolving the missing date in the files section in a more elegant way Signed-off-by: Ezequiel De Oliveira * Using ts attribute always inside of an item object Signed-off-by: Ezequiel De Oliveira Co-authored-by: Diego Mello --- app/views/MessagesView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/MessagesView/index.js b/app/views/MessagesView/index.js index 4e826d3fc..8712beb92 100644 --- a/app/views/MessagesView/index.js +++ b/app/views/MessagesView/index.js @@ -87,7 +87,6 @@ class MessagesView extends React.Component { baseUrl, user, author: item.u || item.user, - ts: item.ts || item.uploadedAt, timeFormat: 'MMM Do YYYY, h:mm:ss a', isEdited: !!item.editedAt, isHeader: true, @@ -114,6 +113,7 @@ class MessagesView extends React.Component { item={{ ...item, u: item.user, + ts: item.ts || item.uploadedAt, attachments: [{ title: item.name, description: item.description,