-
-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
bugSomething isn't workingSomething isn't workinggoPull requests that update go codePull requests that update go code
Description
Summary
After the frozen-history fix (b9407f6), some clients display messages in the wrong order.
Steps to reproduce
- Connect Client A and B.
- Send messages M1–M3.
- Ban Client A.
- Send messages M4–M6 from B.
- Unban Client A and reconnect.
- Send more messages (M7–M8) and check ordering.
Observed
- Messages sometimes appear out-of-order.
- Persists after client restarts.
- Affects some clients intermittently.
Expected
All messages should appear in chronological order.
Suspected causes
- Server query may lack deterministic
ORDER BY
. - Client merge logic may misplace messages.
- Timestamp collisions or sequence-ID mismatch.
Next steps
- Ensure server returns messages in a consistent order.
- Client should sort messages by sequence ID before rendering.
- Add a test for ordering after ban/unban + reconnect.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggoPull requests that update go codePull requests that update go code