discourse/plugins/chat/spec/services
Joffrey JAFFEUX a96ace858e
FIX: client based chat message timestamp (#34592)
Uses the timestamp at the moment where the user hits send for the
created_at value of the chat message. This should ensure very consistent
ordering.

The implementation is simple:
- collects the timestamp and send it in the request (client_created_at)
- if client_created_at is present and valid, set it as created_at when
creating the message

I suspect that we could end up in a situation where a message is routed
to a slower worker and even if sent before an other message could end up
being persisted before the first message which would cause ordering issues.
2025-08-28 10:21:19 +01:00
..
actions DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
chat FIX: client based chat message timestamp (#34592) 2025-08-28 10:21:19 +01:00
hashtag_autocomplete_service_spec.rb DEV: Chat hashtag test (#25638) 2024-02-12 12:32:52 +10:00