Call system messages: model the message call (ended, missed, duration, Join the call) #375

Open
opened 2026-11-13 00:20:05 +00:00 by charles · 0 comments
Owner

Found while doing Text chat 24 (#274).

fluxer_proto::Message does not model the call object of a CALL (type 3) message (participants, ended_timestamp). The original (fluxer_app/src/features/channel/components/CallMessage.tsx) uses it for:

  • "{user} started a call." with a "Join the call" link while the call is ongoing;
  • "{user} started a call that lasted {duration}." once it ended (duration list: "a few seconds", "a minute", "N minutes", hours, days, ... joined as an English list);
  • "You missed a call from {user} that lasted {duration}." when the user was not in it (icon mirrored, --text-tertiary-muted).

Text chat 24 draws every call message as "{user} started a call." with the green phone. Steps: add call: Option<MessageCall { participants, ended_timestamp }> to fluxer_proto::Message (lenient, shaped like the server's MessageCallResponse, with a fixture), then extend widgets::message_content::system::model.

Seen on branch textchat-24-ui-message-row.

Found while doing Text chat 24 (#274). `fluxer_proto::Message` does not model the `call` object of a `CALL` (type 3) message (participants, `ended_timestamp`). The original (`fluxer_app/src/features/channel/components/CallMessage.tsx`) uses it for: - "{user} started a call." with a "Join the call" link while the call is ongoing; - "{user} started a call that lasted {duration}." once it ended (duration list: "a few seconds", "a minute", "N minutes", hours, days, ... joined as an English list); - "You missed a call from {user} that lasted {duration}." when the user was not in it (icon mirrored, `--text-tertiary-muted`). Text chat 24 draws every call message as "{user} started a call." with the green phone. Steps: add `call: Option<MessageCall { participants, ended_timestamp }>` to `fluxer_proto::Message` (lenient, shaped like the server's `MessageCallResponse`, with a fixture), then extend `widgets::message_content::system::model`. Seen on branch `textchat-24-ui-message-row`.
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#375
No description provided.