Commit Graph
360 Commits
Author SHA1 Message Date
Erwan Leboucher ca76e0f993 fix(call): grant the widget MSC4407 sticky-event capabilities
The embedded call widget publishes its MatrixRTC membership as a sticky
event, which ClientWidgetApi refuses without
org.matrix.msc4407.send.sticky_event. The MembershipManager then shut
down and the call dropped.

Grant the send and receive capabilities and implement sendStickyEvent,
sendDelayedStickyEvent and readStickyEvents on CallWidgetDriver.

Also register an MSC4480 sticky_events extension on sliding sync, since
matrix-js-sdk only reads sticky events out of /sync v2.
2026-09-08 19:49:53 +02:00
7w1 e5b50623b1 fix: improve legacy image pack compatibility 2026-08-27 13:58:59 -05:00
Erwan Leboucher b00941f76e fix: adapt to breaking changes in the npm group bump 2026-08-25 13:23:37 +02:00
Erwan Leboucher 453d83d871 fix(call): load the call iframe after the widget transport is listening (#1934)
<!-- 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

- [ ] 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-08-24 15:07:52 +02:00
Erwan Leboucher 2a348a0106 fix(call): load the call iframe after the widget transport is listening 2026-08-24 14:13:13 +02:00
Evelyn Gordon c832256c28 Update MSC4461 support to v3 2026-08-23 01:34:30 -05:00
Evelyn Gordon 189ee33105 Remove dead code 2026-08-22 23:28:51 -05:00
Erwan Leboucher 7bbc9ceb27 fix: finalize npm migration reconciliation 2026-08-20 11:34:57 +02:00
Erwan Leboucher 60292c2032 chore: complete npm major migration merge 2026-08-20 10:08:27 +02:00
7w1 1719f17535 chore: bump a few dependencies 2026-08-17 14:47:01 -05:00
Erwan Leboucher 03ad55f949 feat(editor): replace Slate with ProseMirror in the composer 2026-08-16 12:19:46 +02:00
Erwan Leboucher ad740b6825 test: provide room member lookup for URI mention test 2026-08-13 21:28:00 +02:00
Erwan Leboucher 3336723f15 fix: route Matrix URI mentions in profiles 2026-08-13 21:27:59 +02:00
Erwan Leboucher 6097f81592 feat(call): add native calls 2026-08-13 08:25:37 +02:00
Erwan Leboucher f5a2d60199 feat: Add table styling (#1580)
<!-- 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 aims to add styling for tables, which are not currently styled:

<img width="375" height="221" alt="Screenshot: Before."
src="https://github.com/user-attachments/assets/2f14e5dd-a04e-465c-bca7-137e15e90fd9"
/>

With this PR, tables are displayed like this:

<img width="464" height="249" alt="Screenshot: After."
src="https://github.com/user-attachments/assets/25b88413-8c36-4a4a-ae1d-7a5cb538d178"
/>

Tables are also made to be scrollable (no video because Spectacle is
misbehaving right now):

<img width="571" height="162" alt="Screenshot: Horizontal auto-scroll on
a long table."
src="https://github.com/user-attachments/assets/7cd114bf-5f59-4d8b-a55b-f40a38b9fb71"
/>

#### 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
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [x] 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-08-11 05:06:35 +00:00
Steffo d1598a8917 feat: Scrollable, non-overflowing tables 2026-08-11 05:14:37 +02:00
Steffo 6b414d0fca fix: Move table styles to CustomHtml.css.ts 2026-08-11 04:53:58 +02:00
Erwan Leboucher 1fe8f575ff fix(call): hydrate the member roster before the call widget reads it (#1569)
<!-- 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
- [x] 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-08-07 20:11:36 +00:00
Josie 8552665456 Add accessibility tab 2026-08-07 11:55:09 +01:00
Josie 613af5fd48 Fix spoilers not being formed when a newline is introduced 2026-08-05 12:56:37 +01:00
Erwan Leboucher 4a735be2ba Impl MSC4461: Storing per-message profiles for users (#1589)
<!-- 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. -->

Migrates PMP account data to the format described in
[MSC4461](https://github.com/matrix-org/matrix-spec-proposals/pull/4461).
Extensions to the format are defined in my informal
[MSCF002](https://github.com/j0lol/matrix-spec-proposals/blob/mscf/proposals/F0002-PK-proxy-tags.md).
(Though ambiguity behavior defined in this spec have not been
implemented just yet.)

Part of #1279

#### Type of change
breaking change on an experimental feature, with migrations

- [ ] 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
- [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-08-03 19:46:44 +00:00
Josie 5ad4276bf0 Escape blockquote data-md=">" because that's good practice 2026-08-03 19:28:29 +01:00
Daisy b50b10f696 Impl MSC4461: Storing per-message profiles for users 2026-08-03 17:38:05 +01:00
Erwan Leboucher a8547c8199 fix(call): hydrate the member roster before the call widget reads it 2026-08-01 18:55:33 +02:00
Erwan Leboucher 6d61d9b77c refactor: replace hardcoded Matrix event type strings with SDK constants 2026-08-01 16:20:36 +02:00
hazre adea600a89 fix: lint issues
Signed-off-by: hazre <[email protected]>
2026-07-31 21:02:37 +02:00
Erwan Leboucher fcf98d45f3 fix: support npm major upgrades
Signed-off-by: hazre <[email protected]>
2026-07-31 20:55:37 +02:00
Erwan Leboucher 7261f79057 fix(call): apply Sable theme to Element Call iframe
The call embed iframe was not reflecting the Sable theme:

- Remote/custom themes: ThemeManager injects theme CSS asynchronously into
  a <style> in document.head. The call's MutationObserver only watched
  documentElement and body attributes, so updateInjectedCSS never re-ran
  when the remote theme stylesheet arrived. Observe document.head so
  resolved variable values are picked up.
- EC gradient body background: Element Call defaults to background=gradient
  which paints an SVG gradient via body[data-background="gradient"]::before.
  Pass background=solid in the widget URL params.
- Iframe html dot pattern: syncStyles copies the app's own html, body
  rule (dot pattern) into the iframe. Clear documentElement background
  alongside body.
- EC stylesheet cascade: Element Call loads its own stylesheets into the
  iframe after our injection, and uses !important at the same specificity
  as our overrides. Keep our injected <style> last in the iframe head
  and observe iframe head so our overrides keep winning the cascade.
2026-07-31 09:26:19 +02:00
7w1 b8343ce72f Fix fenced code block newline expansion 2026-07-30 22:36:38 -05:00
7w1 7935df05ae maybe fix katex rendering 2026-07-30 18:25:05 -05:00
Erwan Leboucher 42ea1d7fbe fix(call): forward ongoing call livekit transport to embed 2026-07-30 15:41:26 +02:00
Erwan Leboucher 922e62df65 fix(mobile): keep calls active in background 2026-07-29 16:02:22 +02:00
Shea 6e8ede1824 2 line fix for linkifying broken stuff
Signed-off-by: Shea <[email protected]>
2026-07-28 09:23:02 +03:00
Shea 68de59f361 more visual fixes
Signed-off-by: Shea <[email protected]>
2026-07-28 07:48:29 +03:00
7w1 1677c28826 fix(android/ios): keep calls active in background (#1420)
<!-- 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
- [x] 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-28 02:54:01 +00:00
Erwan Leboucher 94e7f9fcc4 fix(voice-recorder): release the mic when a pending start is superseded 2026-07-27 21:20:27 +02:00
Josie c03f9e92dc persona shorthands in settings 2026-07-27 11:36:38 -05:00
Josie b816d08232 Switch proxy tags being stored as regex to prefix/suffix 2026-07-27 11:35:52 -05:00
Erwan Leboucher 5e447ccb44 fix(android): keep calls active in background 2026-07-27 15:32:39 +02:00
7w1 d4b4929c21 fix: ensure images without specified emoticon don't grow 2026-07-26 15:10:36 -05:00
7w1 1c85c1b417 cleanup, lazy loading, image viewer 2026-07-26 10:51:19 -05:00
Mohammad-Mohsen d4072d8aa9 Add support for displaying gzipped lottie (e.g. tgs) files 2026-07-26 10:51:19 -05:00
Erwan Leboucher dd254457a1 refactor: share cross-cutting hooks and fix the menu, thread and sheet regressions 2026-07-26 16:51:56 +02:00
7w1 63b4a686f9 fix(markdown): keep task list markers as text instead of checkbox input (#1354)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
it's not in the docs but well

#### 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
- [x] 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-25 23:51:46 -05:00
Erwan Leboucher 90115b5705 refactor: remove unused exports flagged by fallow 2026-07-25 21:05:33 -05:00
7w1 3785159460 fix: include user image packs 2026-07-25 15:53:05 -05:00
Erwan Leboucher 3463d74a26 fix(markdown): keep task list markers as text instead of checkbox input 2026-07-25 19:47:31 +02:00
Erwan Leboucher 347920bfec fix(sticker): send using the pack's image info instead of downloading the sticker 2026-07-25 11:58:42 +02:00
Erwan Leboucher 7953ee50a7 fix(call): bypass PNA for split-horizon DNS homeservers
Element Call's iframe uses native window.fetch, bypassing Sable's Rust
proxy. With tauri://localhost classified as public address space, PNA
blocks fetches to homeservers resolving to LAN IPs.

CEF: disable LocalNetworkAccessChecks feature flags.
wry: set_cors_allowlist for HTTP(S) targets.
Android: add local-network-access to iframe allow attribute.
Add SABLE_DEVTOOLS env var to enable inspector in any build.

Same-origin policy and CSP remain enforced.
2026-07-24 13:57:41 +02:00
7w1 fe56ab685d fix: feed room state to call widget after capabilities are notified (#1266)
<!-- 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

- [ ] 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-23 22:20:25 +00:00