Commit Graph
4142 Commits
Author SHA1 Message Date
Erwan Leboucher c8c3efe9bb refactor(call): match the plugin's snake_case commands and drop sendDTMF
The plugin renamed its commands to snake_case, which Tauri's docs
prescribe, so the invoke strings move with it. sendDTMF is gone from the
plugin: it had no caller and only played a CallKit tone.
2026-07-31 23:08:18 +02:00
Erwan Leboucher 4de40ae82e chore(call): restore the release identifier and drop em-dashes
The identifier was switched to moe.sable.dev for local device signing,
which orphans src-tauri/gen/android and makes the Android build fail.
2026-07-31 21:21:38 +02:00
Erwan Leboucher d73f8541e1 feat(call): add audio output selection and fix the native overlay lifetime
The room page stays mounted for the whole mobile slide transition, so
geometry alone kept the native video painted over the outgoing page.
Drive overlay visibility off route selection instead, and give the remote
overlay the occlusion check the local one already had.

getAudioRoutes and setAudioRoute were implemented natively but never
called, so wire them to a control that only appears once the platform
reports routes. Feature a remote screen share over a camera, since iOS
already projects one. Media toggles now follow the connected state, which
is what the native setters require. The quality dot carries state through
colour alone, so give it a label and Sable's own tokens.
2026-07-31 21:21:38 +02:00
Erwan Leboucher 7b25b45280 fix(call): enable adaptive streaming and correct reconnect copy on web
livekit-client defaults adaptiveStream and dynacast to false, so a
multi-party call received every published layer at full quality and kept
sending video nobody displayed. The native engine already enables both.

ConnectionFeedback also treated SignalReconnecting and Connecting as a
lost connection, showing critical red while media was still flowing.
2026-07-31 21:21:38 +02:00
Erwan Leboucher 6a31d23e81 fix(call): load room members so RTC memberships resolve
Sliding sync only ships m.room.member for $ME, so isValidMembership
discarded every RTC membership including our own, leaving
session.memberships empty. The join survived only because
waitForOwnMembership polls server state, but the empty roster also left
RTCEncryptionManager with no recipients, so media keys were never
distributed to the other participants.
2026-07-31 21:21:38 +02:00
Erwan Leboucher 1187f7087c feat(call): add the native call bar, give native calls the screen, fix keyboard reveal
CallStatusRenderer never consulted nativeCallAtom, so navigating away from the
room during a native call left no way to hang up. Extract the bar shell both
engines share and add a native control cluster.

On mobile the call view defaults to 30% height, sized for the Element Call
participant list. A native call renders video tiles and a control bar in that
space, which clipped the floating local preview and collapsed grid rows to
name strips; give it at least 75%.

The web control bar hides itself with visibility:hidden, which removes it from
the tab order, and nothing else inside the surface is focusable, so the
existing focus reveal could never fire from a Tab press. Reveal on keydown too,
and let the control pill wrap so End call cannot be clipped off a narrow
viewport. The test that covered this synthesised focusIn on the surface and
passed for a scenario the browser cannot produce.
2026-07-31 21:21:38 +02:00
Erwan Leboucher c54aec2b66 fix(call): stop showing a normal hangup as a call failure
A remote hangup arrives as an idle snapshot, which was passed to cleanup as a
failure, so the user got a red "Call failed" screen reading "Native call
ended." with a Dismiss button. Clear the session instead, as the LiveKit JS
path already does.

Failure snapshots now map NativeCallFailureCode to user-facing copy, and setup
errors no longer append the raw exception: a user could be shown a TypeError
message. The detail is logged instead.
2026-07-31 21:21:38 +02:00
Erwan Leboucher d27970d9d4 fix(call): show Matrix names and avatars on native call tiles
The native surface derived a label by string-parsing the LiveKit identity, so
tiles showed a raw MXID and initials cut from it, with no avatar. Reuse the
identity map and profile lookup the LiveKit JS surface already uses.

Also include connectionQuality in the participant equality check; without it a
snapshot that only changed quality was dropped and the quality dot went stale.
2026-07-31 21:21:38 +02:00
Erwan Leboucher 40f46113a1 fix(call): use userId:deviceId for the own E2EE key on the LiveKit JS path
RTCEncryptionManager emits our own key under `userId:deviceId` unless
unstableSendStickyEvents is set, which we never set, while
CallMembership.rtcBackendIdentity is a SHA-256 for sticky-event memberships.
The native controller was already fixed; the JS path still passed the hashed
value, so the provider never matched its own key, e2eeReady stayed false, and
the control bar and initial media publish never happened.

Also green the suite and lint: point the native controller fixtures at the
real own identity, follow the hangup button's rename to "End call", type the
lifecycle test mocks, and attach rejection handlers before flushing timers so
vitest stops reporting unhandled errors.
2026-07-31 21:21:38 +02:00
Erwan Leboucher aad8815154 feat: wire native PiP + disable web PiP + mobile prejoin lite 2026-07-31 21:21:38 +02:00
Erwan Leboucher 263051d188 feat: mobile prejoin lite + screen sharing app wiring + connectionQuality on participants 2026-07-31 21:21:38 +02:00
Erwan Leboucher e77a28122c feat: mobile UI redesign: full-bleed remote, floating local preview, filmstrip, icon disconnect, quality dot 2026-07-31 21:21:38 +02:00
Erwan Leboucher 3a71e7d876 feat: native call UI, CallKit integration, shared chrome, camera flip, Matrix Call 2.0 fixes 2026-07-31 21:21:38 +02:00
Erwan Leboucher 7ad882afcd feat(call): show the call status bar during LiveKit calls
CallStatusRenderer only knew about the Element Call embed, so the bottom bar
disappeared entirely on the LiveKit path.

Reuse the existing bar (live chip, room name, member glance and the control
buttons) driven by the LiveKit local participant. Sound moves to a shared
atom so the bar and the call surface agree on it.
2026-07-31 21:21:38 +02:00
Erwan Leboucher f0d4cef91d fix(call): fix call surface layout, participant names and control icons
- centre the audio-call layout; the column had no width so it hugged the left
- resolve the local participant from the client, and index the legacy
  user:device identity alongside the anonymised one, so tiles stop reading
  "Unknown participant"
- log an unresolved identity with the keys we do know
- give the speaker menu an icon and the device menus a caret; MediaDeviceMenu
  renders an empty button and leaves the affordance to CSS
- stop the muted-red style leaking onto device menu buttons via aria-pressed
2026-07-31 21:21:37 +02:00
Erwan Leboucher 83065c6d28 fix(call): fix LiveKit media, devices and participant display
- resolve LiveKit participants to Matrix users for names and avatars
- show participants in audio calls instead of an empty grid
- add a device preview and apply the chosen devices when publishing
- apply prescreen mic/camera/sound choices on both backends
- gate publishing on E2EE readiness
- show device errors, add speaker selection
- derive publish controls from the token grants
- stop a failed session blocking calls in other rooms
- keep a remote key from masking a local import failure
- only fall back to the legacy provisioning endpoint on 404/405
- restore the recovery-key guard dropped by an earlier rebase
2026-07-30 17:41:21 +02:00
Erwan Leboucher 438701c74f chore: regenerate Tauri bindings 2026-07-30 16:39:42 +02:00
Erwan Leboucher 789cb492d0 feat(call): full-viewport LiveKit call UI 2026-07-30 16:38:53 +02:00
Erwan Leboucher af16ab1de3 feat: make LiveKit calls full screen 2026-07-30 15:50:58 +02:00
Erwan Leboucher f0bec651c0 feat: consolidate experimental new calls 2026-07-30 15:24:39 +02:00
Erwan Leboucher 9ae03b1154 chore(call): reconcile native LiveKit rebase with dev
Fold in semantic follow-ups from rebasing onto origin/dev:

- generated tauri bindings: take dev's regeneration wholesale; the spike
  nets no surviving typegen output (its vendored lifecycle plugin is
  removed again), and dropping it silently removed dev's
  start/stopCallForegroundService bindings - restore dev's bytes exactly.
- Cargo.lock: reset to dev's resolution (fixes auto-merge downgrades of
  windows-sys/toml/libloading) and re-add only tauri-plugin-livekit-mobile
  at 77d263f via cargo metadata.
- ios-project.yml: drop the spike's duplicate
  NSMicrophone/NSCameraUsageDescription; dev already ships its own wording
  for both keys, and YAML duplicate keys would override dev's text.
- Cargo.toml: drop a leftover blank line from conflict resolution.
2026-07-30 14:15:40 +02:00
Erwan Leboucher f73a075f91 fix: include native call state 2026-07-30 14:11:47 +02:00
Erwan Leboucher 2eb06837e3 feat: add native LiveKit mobile calls 2026-07-30 14:11:47 +02:00
Erwan Leboucher 12e24a3c0e refactor(call): remove native lifecycle integration 2026-07-30 14:11:19 +02:00
Erwan Leboucher 9b9776d66e feat(call): polish LiveKit media test UI 2026-07-30 14:10:58 +02:00
Erwan Leboucher 2cc6e4a033 fix(call): stabilize LiveKit controller lifetime 2026-07-30 14:10:58 +02:00
Erwan Leboucher 5de9a1450e feat(call): enable browser LiveKit testing 2026-07-30 14:10:58 +02:00
Erwan Leboucher a3f6e4ceb9 refactor(call): remove native LiveKit transport 2026-07-30 14:10:57 +02:00
Erwan Leboucher 36253f91fa feat(call): add LiveKit JS media test lifecycle 2026-07-30 14:09:13 +02:00
Erwan Leboucher 5a8cab5a70 feat(call): enable native calls on all targets 2026-07-30 14:08:37 +02:00
Erwan Leboucher b29892f468 feat(call): add experimental native call toggle 2026-07-30 14:08:08 +02:00
Erwan Leboucher f498e090cc feat(call): add native media adapters 2026-07-30 14:08:07 +02:00
Erwan Leboucher 09d074d19f feat(call): add native transport probe 2026-07-30 14:06:14 +02:00
Erwan Leboucher 8d16da8560 feat(call): vendor native lifecycle plugin 2026-07-30 14:06:14 +02:00
Erwan Leboucher 08dddd3e7b fix(diagnostics): satisfy lint 2026-07-30 08:51:54 +02:00
Erwan Leboucher 09b1430dcb feat(diagnostics): add capture workflow 2026-07-30 08:34:15 +02:00
7w1 d0caffc1a9 fix(crypto): preserve recovery key validation error (#1487)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
- preserve recovery-key and passphrase validation failures in the form
- prevent failed decoding from forwarding an undefined key into
verification/storage

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-30 04:40:27 +00:00
7w1 0eea7b5e5b fix: revoke upload metadata object URLs (#1467)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Release temporary Blob URLs after extracting upload metadata and
thumbnails.

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-30 04:32:32 +00:00
7w1 ff98677d77 fix: track result of export 2026-07-29 22:54:34 -05:00
Erwan Leboucher d9eb43e4fa feat(mobile): export diagnostics 2026-07-29 22:06:25 -05:00
7w1 3288399d94 feat(mobile): consolidate bottom sheets and rework the emoji picker (#1433)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<img width="480" alt="1000000104"
src="https://github.com/user-attachments/assets/2d1d4897-7fc7-4bf4-83a3-f4d705da2e6c"
/>
<img width="480" alt="Screenshot_20260727-215550_Sable"
src="https://github.com/user-attachments/assets/16af3b49-0b59-4e4e-9294-2a57aa462c25"
/>

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-30 03:03:20 +00:00
7w1 278c2789b8 chore: Wrap membership event reasons in parentheses (#1470)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

This PR attempts to slightly improve the visualization of membership
join events.

#### Before

Without the PR, membership events' change reasons are either blended
with the rest of the service message text, or not shown entirely in the
case of join reasons.

<img width="573" height="464" alt="Screenshot before the change."
src="https://github.com/user-attachments/assets/aff5bf5d-1a53-4133-80cf-b33f2e1e8e90"
/>

#### After

With the PR, all reasons are displayed, and they are wrapped in
parentheses.

<img width="613" height="467" alt="Screenshot after the change."
src="https://github.com/user-attachments/assets/0836dde7-f643-4a01-85fc-be27b6f144b4"
/>

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] ~~Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).~~
- [ ] ~~Fully AI generated (explain what all the generated code does in
moderate detail).~~
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-30 02:35:02 +00:00
7w1 02f9f94e32 fix: also add leave reasons 2026-07-29 21:33:22 -05:00
7w1 a21daf4242 fix(mobile): keep calls active in background (#1474)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

tested on ios and android, not native fully but works at least

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-30 02:26:20 +00:00
7w1 e198c04794 fix(mobile): save downloaded media (#1475)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

tested on android sadly not on ios

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-30 02:07:17 +00:00
7w1 5e79335798 fix: double check that response succeeded 2026-07-29 21:05:59 -05:00
Steffo d8082340c8 chore: Wrap membership event reason in parentheses 2026-07-29 23:47:43 +02:00
7w1 ba5a5a607c fix: harden mobile push delivery (#1488)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

improve reliability of notifications

#### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-29 21:28:34 +00:00
7w1 0d40956440 fix: avoid retaining desktop updater downloads (#1491)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-29 21:24:29 +00:00
7w1 7b038ed67e fix: preserve timeline position during content growth (#1486)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

fix scroll when an embed appear

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-29 19:19:30 +00:00