Commit graph

16 commits

Author SHA1 Message Date
8dcd3311bc
fix(client): keep a stored voice mode and default to voice activation only for new profiles 2026-10-25 10:14:15 +01:00
eed3e28c63
feat(client): synthesized notification sounds with settings
Short tones for joining and leaving a voice room, other participants
joining and leaving, new messages outside the viewed chat, mentions,
microphone mute and unmute, deafen and undeafen, server connection and
loss, and errors. The tones are generated at runtime (rising motifs for
arrival or enable, falling for leave or disable) with an attack and a
fade-out so they never click; no third-party audio is bundled.

Inside a voice room the sound is mixed into the open playback stream,
otherwise a short one-shot stream is opened on the selected output device
off the UI thread, capped at two at a time. While deafened nothing plays
except the undeafen sound. Settings: master switch, volume and separate
switches for voice room, messages and mentions, stored with the audio
preferences, with a new settings section and a test button.
2026-10-25 10:03:21 +01:00
bf485720f5
fix(client): keep the live voice session visible and stop orphaned microphones
Switching from room A to room B replaced the voice state with a joining
state while the microphone was still capturing in A, and a deleted room
left the capture pipeline running with no visible state.

A pending join is now stored separately, so the live session stays shown as
connected until the server acknowledges the new room or refuses it. The
capture pipeline is stopped whenever it no longer belongs to the current
voice target, whatever a pending join is waiting for.
2026-10-25 10:03:21 +01:00
7d488faf59
fix(client): derive voice status from a single state machine
The status bar and voice page kept saying the room was being joined while
the sidebar already reported a connected voice. Clicking the room you were
already in set a free-text 'joining' message that nothing cleared, because
the server does not answer a repeated join, and the voice page showed its
joining label whenever the member list was empty.

Joining is now an explicit voice state. The sidebar, the voice page and the
status text all read one derived status; a repeated click only shows the
room, and a server error cancels a pending join.
2026-10-25 10:03:21 +01:00
69d108b090
fix(client): surface audio failures and use adaptive voice activation
Capture and playback failures were only written to the log on detached
threads, so a microphone or output that could not be opened still showed a
connected voice room with no sound. Threads now report into a shared
diagnostics sink that the UI polls: errors appear in the status bar, a
room with neither working half is marked failed, and signal counters
(captured, sent, received, decoded, input peak) are logged every ten
seconds. A microphone that delivers only digital silence is reported, and
rejected voice datagrams are logged instead of dropped silently.

Voice activation now tracks the background noise floor and opens just
above it, capped by a much lower default ceiling; the old fixed threshold
(about -26 dBFS) rarely opened for normal speech. Stream configuration only
accepts f32 formats and says so when a device offers nothing else.

Playback gains a mixing queue for short notification effects.
2026-10-25 10:03:20 +01:00
3b95df9e9c
fix(client): list only real audio devices and persist the choice by id
The device pickers showed every ALSA PCM plugin (Discard all samples, Rate
Converter, JACK, Open Sound System, surround/dmix aliases). Enumeration now
goes through a pure filter that keeps the system default, the PipeWire and
PulseAudio servers and one entry per hardware endpoint, with technical tails
removed and a stable sort.

Selections are stored by device id instead of list position, so the filter
and hotplug cannot move a saved choice. Indexes saved by older versions are
migrated by device name; a missing device falls back to the default.

The same preferences change records whether the voice mode was chosen by
the person: a profile that only carries the old push-to-talk default now
starts in voice activation, explicit choices are kept.
2026-10-25 10:03:20 +01:00
6c1ac59f78 fix(client): align the auto-reconnect checkbox with its label 2026-10-24 22:13:47 +02:00
29883a3187 feat(client): TLS 1.3 control connection with SPKI pinning and LNEx v3
Replace the custom X25519/HKDF/ChaCha20 TCP layer with rustls (TLS 1.3 only,
ALPN vnox-lnex/3, no plaintext or fallback). Add a trust store (pin, trust on
first use, public CA), block changed fingerprints and identities, bind the
Ed25519 auth signature to the TLS exporter, add RU/EN trust dialog and
update the interop test and e2e voice tool.
2026-10-24 22:05:19 +02:00
5f594046a6
fix(client): size connect card to its content so spacing stays tight 2026-10-24 17:09:35 +02:00
3d7dd5413b
feat(client): protocol v2 wire layer, screen sharing, channel webhooks and secure voice
Verified against the real gateway via tests/gateway_interop.rs.
2026-10-24 16:51:15 +02:00
8460fb28fd
feat(client): add RU/EN localization and native capture preview 2026-10-24 15:04:50 +02:00
8e5ab56611
feat(client): redesign native UI, themes, settings and avatars
Separate conversation drafts and voice view state, add native settings and restricted CSS themes, implement validated avatar cropping, and refresh dependencies with documented desktop compatibility backports.
2026-10-24 14:23:48 +02:00
44d284a568
docs: rewrite README with feature list, tech stack, status table; fix Slint padding warnings; update encryption status 2026-07-21 17:39:51 +02:00
49e1f38793
feat: activity status persistence, voice-node leave on disconnect, guild bar, chat context menu, settings/identity UI 2026-07-18 22:19:47 +02:00
03d94e0465
Phase 2: E2EE for DM + Slint migration + dead code cleanup
- E2EE crypto (src/e2ee.rs) with X25519 key derivation from Ed25519,
  HKDF shared secret, ChaCha20-Poly1305 encrypt/decrypt
- E2EE net layer: PID 0x0071-0x0074, JSON payloads, dispatch, session handlers
- E2EE UI: lock icons in DM header and sidebar
- Slint migration: all .slint files, bridge.rs, update.rs, main.rs
- Removed egui UI (~50 files), cleaned all dead code
- Clean cargo clippy -- -D warnings
2026-07-14 13:25:15 +02:00
bf0b237afd Initial commit: split VNOX monorepo into VNOX-Client
Desktop client with egui + wgpu UI, audio pipeline (cpal/opus/rodio),
networking (LNEx protocol), and identity management with encrypted vault.

Jitter buffer module extracted from voice-node for standalone operation.
2026-07-09 11:52:57 +02:00