Messages with incorrect timestamps: View-sorting according to timestamp, tap-sorting according to order of physical reception. #239

Open
opened 2026-10-27 15:45:24 +01:00 by adam · 1 comment
Owner

Describe the bug

Playing around with the local clock, messages in chat views (DMs and chanels) are sorted in display according to timestamp the message has, but in selection (when I tap on them) by physical order of reception/ sending.

Leading to a mismatch: Tapping on a message with modified timestamp opens another message.

Which device are you using

LilyGO T-Deck Plus

Which Firmware are you using

v0.9.12

To Reproduce

  1. Have clock set to time A
  2. Send a message a
  3. Have clock set to time B (B < A)
  4. Send a message b (or receive a message b from another client where the time is set to B)
  5. Observe that in the chat view, the messages are ordered as
    B: b
    A: a
    
  6. Observe that when you tap on message B: b, message A: a opens, and when you tap on message A: a, message B: b opens.

Expected result

"Tap"-sorting same as "view"-sorting.

I don't know if we should sort by timestamp or physical reception. Opinions? (To see freshly received messages, sorting by physical reception could be nice.)

Regards!

**Describe the bug** Playing around with the local clock, messages in chat views (DMs and chanels) are sorted in _display_ according to timestamp the message has, but in _selection_ (when I tap on them) by physical order of reception/ sending. Leading to a mismatch: Tapping on a message with modified timestamp opens another message. **Which device are you using** LilyGO T-Deck Plus **Which Firmware are you using** v0.9.12 **To Reproduce** 1. Have clock set to time A 2. Send a message a 3. Have clock set to time B (B < A) 4. Send a message b (or receive a message b from another client where the time is set to B) 5. Observe that in the chat view, the messages are ordered as ``` B: b A: a ``` 6. Observe that when you tap on message `B: b`, message `A: a` opens, and when you tap on message `A: a`, message `B: b` opens. **Expected result** "Tap"-sorting same as "view"-sorting. I don't know if we should sort by timestamp or physical reception. Opinions? (To see freshly received messages, sorting by physical reception could be nice.) Regards! <!-- github-sync-id:4359386024 -->
Author
Owner

tapping a message now opens exactly the message you tapped, also when messages have odd timestamps (display and tap use the same order). Would be nice if you could retest!

tapping a message now opens exactly the message you tapped, also when messages have odd timestamps (display and tap use the same order). Would be nice if you could retest! <!-- github-comment-id:5920025079 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshcore#239