[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,
|
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,
|
||||||
|
|
Loading…
Reference in New Issue