fluxer-proto: model Channel.user_limit so the sidebar can show the voice user count #107

Open
opened 2026-11-11 18:20:15 +00:00 by charles · 0 comments
Owner

Found while building Voice 16 (#77, sidebar voice participants).

The original shows a current / limit badge beside a voice channel that has a user limit (fluxer_app/src/features/app/components/layout/VoiceChannelUserCount.tsx, shown when channel.userLimit > 0). fluxer_proto::Channel does not carry user_limit (its doc says "Voice settings (bitrate, user limit, region) are not modelled yet"), although the fixtures already have the field (fixtures/gateway/ready.json, fixtures/rest/channel_voice.json).

Voice 16 ships the badge widget and the model field (voice_participants::UserCount, drawn by the sidebar), but voice_participants::user_limit returns None for every channel until the field exists, so the badge never shows.

To do (protocol change, its own task per CLAUDE.md):

  • add user_limit: Option<u32> (and, if wanted, bitrate, rtc_region) to fluxer_proto::Channel, with a fixture whose limit is not 0;
  • make fluxer_ui::screens::main::voice_participants::user_limit read it (0 means no limit);
  • extend the sidebar_voice screenshot with a limited channel.

Seen on branch voice/16-ui-voice-sidebar (base d245b6f).

Found while building Voice 16 (#77, sidebar voice participants). The original shows a `current / limit` badge beside a voice channel that has a user limit (`fluxer_app/src/features/app/components/layout/VoiceChannelUserCount.tsx`, shown when `channel.userLimit > 0`). `fluxer_proto::Channel` does not carry `user_limit` (its doc says "Voice settings (bitrate, user limit, region) are not modelled yet"), although the fixtures already have the field (`fixtures/gateway/ready.json`, `fixtures/rest/channel_voice.json`). Voice 16 ships the badge widget and the model field (`voice_participants::UserCount`, drawn by the sidebar), but `voice_participants::user_limit` returns `None` for every channel until the field exists, so the badge never shows. To do (protocol change, its own task per CLAUDE.md): - add `user_limit: Option<u32>` (and, if wanted, `bitrate`, `rtc_region`) to `fluxer_proto::Channel`, with a fixture whose limit is not 0; - make `fluxer_ui::screens::main::voice_participants::user_limit` read it (0 means no limit); - extend the `sidebar_voice` screenshot with a limited channel. Seen on branch `voice/16-ui-voice-sidebar` (base d245b6f).
charles added this to the Voice milestone 2026-11-11 18:20:15 +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#107
No description provided.