[FIX] Wrong date and time shown in file section (#2409)

* Adding missing prop to item object

Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com>

* Resolving the missing date in the files section in a more elegant way

Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com>

* Using ts attribute always inside of an item object

Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com>

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Ezequiel de Oliveira 2020-08-25 17:09:52 -03:00 committed by GitHub
parent 15c12f8901
commit e9bb24ee38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,6 @@ class MessagesView extends React.Component {
baseUrl, baseUrl,
user, user,
author: item.u || item.user, author: item.u || item.user,
ts: item.ts || item.uploadedAt,
timeFormat: 'MMM Do YYYY, h:mm:ss a', timeFormat: 'MMM Do YYYY, h:mm:ss a',
isEdited: !!item.editedAt, isEdited: !!item.editedAt,
isHeader: true, isHeader: true,
@ -114,6 +113,7 @@ class MessagesView extends React.Component {
item={{ item={{
...item, ...item,
u: item.user, u: item.user,
ts: item.ts || item.uploadedAt,
attachments: [{ attachments: [{
title: item.name, title: item.name,
description: item.description, description: item.description,