Skip to content

Unexpected message order when system clock set to the past #8027

@DarkCat09

Description

@DarkCat09
  • Operating System (Linux/Mac/Windows/iOS/Android): Linux
  • Core Version: v2.43.0
  • Client Version: 2.43.0

Same behavior on latest ArcaneChat v2.46.0

Expected behavior

I'd expect new messages to be displayed at the bottom, after any previous messages in the chat, despite their timestamps.

Actual behavior

When the system time is in the past (because of some misconfiguration), and there are "newer" messages in a chat, Delta clients display new sent messages right where they should've been placed by their timestamp, i.e. above previously written messages that are newer by timestamps but actually were written before.

You may argue this condition is very unusual, but it can happen, it happened, and the client behavior was extremely unobvious and confusing.

Steps to reproduce the problem

  1. Send some messages to a chat
  2. Set system clock to an hour earlier
  3. Send another message
  4. That new message is displayed above all the previous

Screenshots

See the screencast showing how to reproduce the bug:

order.mp4

Logs

Nothing useful

Metadata

Metadata

Assignees

Labels

bugSomething is not working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions