VoiceConnection::Connected.since has no clock to come from #109

Open
opened 2026-11-11 18:26:59 +00:00 by charles · 0 comments
Owner

Found while building Voice 7 (#68).

Voice spec §5.1 gives VoiceConnection::Connected { target, connection_id, since: Timestamp }, which the connection details popout (Voice 17, #78) needs for the call duration. fluxer-core has no clock (no I/O, nothing reads the time), and VoiceEvent::Connected of spec §5.3 carries no time, so the store cannot fill the field.

Voice 7 therefore ships since: Option<Timestamp>, always None. Options to fill it:

  1. The runtime stamps the event: VoiceEvent::Connected { at: Timestamp } (changes the §5.3 port).
  2. A general clock input for the store (for example App::apply_at(event, now) or a CoreEvent::Clock(Timestamp) the runtime sends before events that need one); pending messages could then use it too instead of the newest known message time.
  3. Keep time out of the store and let the runtime/UI remember when it saw the transition to Connected.

Whichever is chosen, since should survive Reconnecting -> Connected and be reset by a move or a room swap only if the original does so.

Found while building Voice 7 (#68). Voice spec §5.1 gives `VoiceConnection::Connected { target, connection_id, since: Timestamp }`, which the connection details popout (Voice 17, #78) needs for the call duration. `fluxer-core` has no clock (no I/O, nothing reads the time), and `VoiceEvent::Connected` of spec §5.3 carries no time, so the store cannot fill the field. Voice 7 therefore ships `since: Option<Timestamp>`, always `None`. Options to fill it: 1. The runtime stamps the event: `VoiceEvent::Connected { at: Timestamp }` (changes the §5.3 port). 2. A general clock input for the store (for example `App::apply_at(event, now)` or a `CoreEvent::Clock(Timestamp)` the runtime sends before events that need one); pending messages could then use it too instead of the newest known message time. 3. Keep time out of the store and let the runtime/UI remember when it saw the transition to `Connected`. Whichever is chosen, `since` should survive `Reconnecting -> Connected` and be reset by a move or a room swap only if the original does so.
charles added this to the Voice milestone 2026-11-11 18:26:59 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#109
No description provided.