mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 09:49:42 +00:00
FIX: message date is incorrect when replying as new thread (#23608)
When creating a new thread by clicking the reply button on a chat message, it shows an invalid date on the OP timestamp.
This commit is contained in:
parent
02de223da8
commit
e6c97ffece
@ -70,7 +70,9 @@ export default class ChatMessage {
|
||||
this.availableFlags = args.availableFlags || args.available_flags;
|
||||
this.hidden = args.hidden || false;
|
||||
this.chatWebhookEvent = args.chatWebhookEvent || args.chat_webhook_event;
|
||||
this.createdAt = args.created_at ? new Date(args.created_at) : null;
|
||||
this.createdAt = args.created_at
|
||||
? new Date(args.created_at)
|
||||
: new Date(args.createdAt);
|
||||
this.deletedById = args.deletedById || args.deleted_by_id;
|
||||
this._deletedAt = args.deletedAt || args.deleted_at;
|
||||
this.expanded =
|
||||
|
Loading…
x
Reference in New Issue
Block a user