mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 11:35:49 +08:00
FIX: Invalid date when sending chat message in thread (#24455)
Fixes a minor issue where "Invalid date" is shown briefly when sending a message in a chat thread. Change to use `new Date()` instead like the channel staged message which does not have this issue.
This commit is contained in:
parent
190a7f8c7a
commit
7cf59dc8fe
@ -63,7 +63,7 @@ export default class ChatThread {
|
||||
message.staged = true;
|
||||
message.processed = false;
|
||||
message.draft = false;
|
||||
message.createdAt ??= moment.utc().format();
|
||||
message.createdAt = new Date();
|
||||
message.thread = this;
|
||||
|
||||
this.messagesManager.addMessages([message]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user