Commit Graph
4189 Commits
Author SHA1 Message Date
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
Erwan Leboucher 67bb047e4b Fix jumbo emoji on pmp messages (#1602)
<!-- 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. -->
Fix jumbo emoji on pmp messages.

Part of #1279

#### 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
- [x] Does not add a changeset??

### 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:33:07 +00:00
Josie f9f7a468e6 Fix jumbo emoji on pmp messages 2026-08-03 20:30:36 +01:00
Josie 5ad4276bf0 Escape blockquote data-md=">" because that's good practice 2026-08-03 19:28:29 +01:00
Josie afe64da018 msc4461 delete old records 2026-08-03 18:03:48 +01:00
Daisy b50b10f696 Impl MSC4461: Storing per-message profiles for users 2026-08-03 17:38:05 +01:00
Erwan Leboucher 606b72bcbe Allow changing/editing PMP on messages (#1586)
<!-- 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. -->

Adds an option on messages to change the PMP

Part of #1279

#### 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
- [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 15:54:23 +00:00
Josie bf287072e2 Allow changing/editing PMP on messages 2026-08-03 16:34:20 +01:00
Bart Oostveen 5b604a0b8a fix(user-profile): respect 24-hour clock setting for local time 2026-08-02 08:56:42 +02:00
Erwan Leboucher 606daa5ed8 fix(timeline): clear stale jump to latest state 2026-08-01 16:42:22 +02:00
Erwan Leboucher 64ee350ed8 fix(timeline): render events that are still encrypted and refresh on decryption 2026-08-01 16:42:21 +02:00
Erwan Leboucher 6d61d9b77c refactor: replace hardcoded Matrix event type strings with SDK constants 2026-08-01 16:20:36 +02:00
Erwan Leboucher 8cb6836cd2 fix(media): cap concurrent media fetches so they cannot stall the Matrix API 2026-07-31 15:27:09 -05:00
Erwan Leboucher 821f7822eb fix(sync): settle room subscription loading when the server sends no room data 2026-07-31 15:27:08 -05:00
Erwan Leboucher 16b225f111 fix(timeline): surface a retry when the first backfill fails on an empty room 2026-07-31 15:27:08 -05:00
Erwan Leboucher fd1d03ec00 fix(timeline): clear the unread marker when the room is read on another device 2026-07-31 15:27:08 -05:00
Erwan Leboucher 91da38b283 fix(timeline): ignore the merged-row sentinel when highlighting a focus jump 2026-07-31 15:27:08 -05:00
Erwan Leboucher 7e1424775b fix(timeline): re-render message rows when permissions or display settings change 2026-07-31 15:27:08 -05:00
Erwan Leboucher 366adaa10e fix(timeline): keep the new-messages divider when its anchor is a filtered event 2026-07-31 15:27:08 -05:00
Erwan Leboucher 5d5f35186a test(timeline): fuzz the append-only fast path against a full reprocess 2026-07-31 15:27:08 -05:00
Erwan Leboucher c701dcb1cb test(timeline): cover pagination, live arrival and permalink jumps in useTimelineSync 2026-07-31 15:27:08 -05:00
Erwan Leboucher 3836bfe9d0 fix(sliding-sync): keep an accepted invite joined when the server replays stale invite state 2026-07-31 15:27:08 -05:00
Erwan Leboucher eee1198700 fix(sliding-sync): refresh stale room member display names when global profile differs 2026-07-31 15:27:07 -05:00
Erwan Leboucher 377cbf4ce7 fix: keep calls alive in background on iOS and Android 2026-07-31 13:30:42 +02:00
Erwan Leboucher 69cddfc3f6 fix: register enable-pk-latching focusId in settings link map 2026-07-31 11:31:19 +02:00
Shea e05298762e Add persona latching when using shorthands (#1435)
<!-- 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. -->
Adds 'latching', a PluralKit feature where if a shorthand is used it
will set the proxy to be used for subsequent messages. This is a setting
that is off by default.

Part of #1279

#### 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
- [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-31 08:19:45 +00:00
Shea c3831c4650 Add PMP name colors (#1462)
<!-- 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. -->

Adds name colors to PMPs. This is **not** using extended profiles, just
adding an unstable key onto the Beeper format.

```json
"com.beeper.per_message_profile": {
  <snip>
  "eu.she-a.colors": {
    "on_dark": "#ff81e7",
    "on_light": "#da02b2"
  }
},
```

Relevant settings have been added in the Persona submenus, and an option
to disable Persona name colors has also been added. (Though this will
only disable them in messages, not in a user's own persona settings or
persona picker.)

Also (by necessity) makes `NameColorEditor` more user-friendly and adds
an `onChange` optional callback.

Part of #1279

#### 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
- [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-31 08:18:54 +00:00
Shea 79fbfa89c3 fix(call): re-evaluate injected CSS when remote theme styles load (#1528)
<!-- 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-31 07:35:22 +00: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
Shea 775df3aac4 typo :<
Signed-off-by: Shea <[email protected]>
2026-07-31 10:10:48 +03:00
Shea bca26a89bb New Color MSC4522 (#1526)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Since most of the changes are just converting to the MSC keys there
should be no real difference for any user besides deprecating the old
keys for setting, but not yet for getting since it will be bound to be
people that will not update their colors or even client upon release.

Implements
[MSC4522](https://github.com/matrix-org/matrix-spec-proposals/pull/4522)

#### 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. -->
Written with the assistance of the msc (no ai involvement)
2026-07-31 06:52:54 +00:00
Shea 7bdd0e379a fmt
Signed-off-by: Shea <[email protected]>
2026-07-31 09:03:44 +03:00
Shea 05f2ce4291 update to unstable key
Signed-off-by: Shea <[email protected]>
2026-07-31 09:01:54 +03:00
Shea b73efae945 merge dev
Signed-off-by: Shea <[email protected]>
2026-07-31 08:25:50 +03:00
Shea 67e400d9e7 clean everything up
Signed-off-by: Shea <[email protected]>
2026-07-31 08:18:22 +03:00
7w1 47c4f9a6be fix: retry tauri media after token refresh (#1498)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

- Prevents refreshed OIDC tokens from being overwritten in Tauri.
- Makes image and video Retry issue a fresh native media request.
- Avoids caching native media errors.

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-31 04:30:36 +00:00
7w1 adb57b8a59 formatting 2026-07-30 23:24:54 -05:00
7w1 3b7772b663 fix: retry all media shapes 2026-07-30 23:19:43 -05:00
7w1 0c5674d403 Cleanup changesets and fix 1417 (#1525)
<!-- 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. -->

Deleted a bunch of changesets and fixes #1417

#### 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:

- [ ] 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 22:40:57 -05:00
7w1 b8343ce72f Fix fenced code block newline expansion 2026-07-30 22:36:38 -05:00
7w1 4a60291c25 formatting 2026-07-30 21:55:50 -05:00
Erwan Leboucher ecca522045 fix: restore desktop update pill and use downloadAndInstall 2026-07-30 21:51:10 -05:00
7w1 876cd1b848 refactor: framer motion to native things 2026-07-30 21:40:13 -05:00
7w1 464a47dbe8 fix(mobile): restore bottom-sheet close animations 2026-07-30 20:47:14 -05:00
7w1 55f2e12009 fix: avoid unnecessary Slate clipboard reads (#1501)
<!-- 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
- [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-31 00:06:35 +00:00
7w1 d2042ad145 fix(mobile): stop pinned list sheet from jittering in height (#1509)
<!-- 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. -->

fix jitter from mobile sheet

#### 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-31 00:02:40 +00:00
7w1 8f2d1688fc fix: clamp and reset pinned sheet height 2026-07-30 19:01:24 -05:00
7w1 3ee4a817f2 fix media on secondary accounts not loading (#1521)
<!-- 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 media not loading for any account except the first one

#### 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-30 18:34:56 -05:00
7w1 7935df05ae maybe fix katex rendering 2026-07-30 18:25:05 -05:00
7w1 67871c1210 fix media on secondary accounts not loading 2026-07-30 17:47:19 -05:00