[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:
parent
15c12f8901
commit
e9bb24ee38
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue