Commit Graph
4214 Commits
Author SHA1 Message Date
Erwan Leboucher 1c31c9a9d1 fix(e2ee): Prepare room encryption before sending 2026-08-05 10:53:44 +02:00
Erwan Leboucher 1ab717f9a3 fix(dm): refresh direct chat avatars 2026-08-04 14:53:08 +02:00
Erwan Leboucher 17ab045ce1 fix: correct MSC4461 account data 2026-08-04 11:06:21 +02:00
Erwan Leboucher 04365c3313 fix: persist MSC4461 profiles 2026-08-04 10:38:12 +02:00
Erwan Leboucher 45174e3399 fix(timeline): refresh rows whose event decrypted after they were cached (#1583)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

messages in encrypted rooms only showed up if they arrived while the app
was foregrounded. anything from cache stayed blank until you cleared it.

the append-only fast path in useProcessedTimeline validated its cache on
mEvent identity, but decryption mutates the event in place. rows built
while the event was still encrypted kept the ciphertext content, and
later live messages reused the stale prefix. #1555 exposed this. before
it, still-encrypted events were filtered out so nothing stale got
cached.

entries now carry clearType/clearContent when the event is encrypted,
and the prefix guard compares those too.

also coalesced handleDecrypted onto one frame. decryptions land in
separate tasks, so a 25 event backlog meant 25 full reprocesses.

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-08-04 08:17:48 +00:00
Erwan Leboucher 0a52d5e54d fix(members): refill the member roster when sliding sync only lazy-loaded it (#1554)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Under sliding sync, rooms subscribe with [m.room.member, $LAZY], so the
client only knows members visible in the timeline. The SDK's
`loadMembersIfNeeded()` is supposed to fill the rest via /members, but
it skips that fetch whenever IndexedDB already holds an out-of-band
member record for the room and never retries. Result: incomplete mention
autocomplete and a members-panel spinner that never stops.

Fixes #1585

#### 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-08-04 08:12:59 +00:00
Erwan Leboucher 14d0f75d0f fix(dm): filter bridge bots from DM name/avatar resolution
Fixes #1585
2026-08-04 10:04:28 +02:00
Josie 15a723f45a fix pmp add/update not persisting 2026-08-04 09:00:26 +01:00
Erwan Leboucher 3b1c8d4235 Fix pmp replies not respecting pmp name color (#1609)
<!-- 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. -->

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:

- [ ] 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-04 07:40:29 +00:00
Erwan Leboucher 259f8b7e06 Fix Reply preview tests 2026-08-04 09:36:43 +02:00
Erwan Leboucher 1c7d95c1c5 feat: add gif slash command (#1573)
<!-- 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)
- [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
- [ ] 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-04 05:50:32 +00:00
Shea b80f432fae Fix pmp messages showing fallback in copy (#1612)
<!-- 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. -->
Basic bugfix

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:

- [ ] 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-04 02:33:10 +00:00
Shea 46517deaee Add the option to remove the fallback from PMPs (#1611)
<!-- 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. -->
Prevents some forms of annoyances in public rooms (where people are not
used to PMP users)

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
- [ ] 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-04 02:33:00 +00:00
Shea 49cef3745a make fallback tag more reliable 2026-08-04 05:27:59 +03:00
Shea 55ec452981 Merge branch 'dev' into push-tsovzvprxmrn 2026-08-04 05:00:41 +03:00
Josie d4a20587d8 Add the option to remove the fallback from PMPs 2026-08-04 00:33:08 +01:00
Josie 8b1e7c058e Fix pmp /me rendering 2026-08-04 00:17:04 +01:00
Josie ccdce73e62 Fix pmp messages showing fallback in copy 2026-08-04 00:10:02 +01:00
Josie 6e3ffe501c Fix pmp replies not respecting pmp name color 2026-08-03 23:30:08 +01:00
Erwan Leboucher 5981147cdf Fix bundled URL Preview Rendering: remove superfluous theming check (#1603)
<!-- 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
- [ ] 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 20:19:11 +00: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
Florian 8b6f032f25 Fix bundled URL Preview Rendering: remove theming check that broke the preview for bundled embeds 2026-08-03 21:40:56 +02: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
Erwan Leboucher 3e3ae9a59f fix(members): refill the member roster when sliding sync only lazy-loaded it 2026-08-02 22:27:20 +02:00
Erwan Leboucher 95054677eb fix(timeline): refresh rows whose event decrypted after they were cached 2026-08-02 11:38:24 +02: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 1c2ca406a1 feat: support gif slash command searches 2026-08-01 21:53:25 +02:00
Erwan Leboucher c5d27ed341 feat: add gif slash command 2026-08-01 21:42:53 +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