Commit Graph
4496 Commits
Author SHA1 Message Date
Erwan Leboucher 7ffb49ced9 fix(editor): restore composer focus after the autocomplete menu closes 2026-08-17 22:41:42 +02:00
Erwan Leboucher 843c4f2592 fix(unread): flush the sync store when the app is hidden or closed (#1837)
<!-- 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. -->

shameless copied from element 
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:

- [ ] 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-17 22:26:38 +02:00
Erwan Leboucher 42e26cd2df fix(sliding-sync): keep the head back-pagination token on overlapping limited responses (#1836)
<!-- 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:

- [ ] 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-17 22:26:28 +02:00
Erwan Leboucher f7117e7eaa fix(unread): flush the sync store when the app is hidden or closed 2026-08-17 22:14:27 +02:00
Erwan Leboucher a4445e96ba fix(sliding-sync): keep the head back-pagination token on overlapping limited responses 2026-08-17 22:08:24 +02:00
7w1 1719f17535 chore: bump a few dependencies 2026-08-17 14:47:01 -05:00
Erwan Leboucher 9498494dba fix(media): fall back to the original when a homeserver thumbnail drops EXIF orientation (#1834)
<!-- 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:

- [ ] 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-17 21:28:24 +02:00
Erwan Leboucher a14328d757 fix(media): fall back to the original when a homeserver thumbnail drops EXIF orientation 2026-08-17 21:12:43 +02:00
7w1 47d1bd05a9 fix: switch to fully client side klipy gif fetching (#1832)
<!-- 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. -->

To appease the klipy overlords.

Removes all uses of the gif proxy. Previous favorites/sent gifs are
still rendered and parsed fully client side, so everything should
migrate cleanly. Gifs now go directly to klipy, no homeserver or gif
proxy intermediary to fully comply with Klipy's integration
requirements.

Obviously, this now means gifs will likely not appear on any clients
other than Sable (it would just be a message with a raw link, so it
would be dependent on homeserver fetching, sable attaches some metadata
to the message to make it easier for us to render blurhash and sizes)
and it means gifs are always going to be directly loaded by the client
so there's a little bit of a privacy issue there, but I can't find any
other way to satisfy Klipy.

Toggle for unencrypted rooms is baked into the disable media autoload.
There's an explicit opt-in toggle for automatically loading external
gifs for encrypted rooms.

#### 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-17 13:54:52 -05:00
7w1 48d62c234f fix gif sizing and adjust rendering 2026-08-17 13:42:21 -05:00
7w1 81f915c0b9 use correct klipy share url 2026-08-17 13:39:01 -05:00
Erwan Leboucher e383f3f47a fix(editor): scale composer text with the page zoom setting 2026-08-17 20:29:44 +02:00
7w1 6a872f3e24 fix: switch to fully client side klipy gif fetching 2026-08-17 13:10:56 -05:00
Erwan Leboucher ffc6d3f6d8 fix(url-preview): stop cards holding placeholder height and resolve previews ahead of the viewport 2026-08-17 17:29:57 +02:00
Erwan Leboucher b382f45ceb fix(editor): update the editable's attributes without rebuilding the view 2026-08-17 15:30:32 +02:00
Erwan Leboucher 7b99f8902d fix(editor): pad the composer text below as well as above 2026-08-17 15:30:32 +02:00
Erwan Leboucher 72c3ca5e87 feat(editor): replace Slate with ProseMirror in the composer (#1724)
<!-- 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:

- [ ] 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-17 13:45:26 +02:00
Erwan Leboucher 345128e4e1 test(e2e): measure preview scroll drift between mounted rows 2026-08-17 11:59:00 +02:00
Erwan Leboucher 26b4017908 fix(android): retry a media save when MediaStore runs out of unique names 2026-08-17 11:47:58 +02:00
Erwan Leboucher bb8baacf6d fix: fix poll crashing and fix forward not searching correctly (#1822)
<!-- 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:

- [ ] 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-16 23:12:32 +02:00
Erwan Leboucher 302c1bb298 fix(poll): stop an unreadable response crashing the room
PollEvent treated every m.reference child of a poll as a well formed
vote, reading the answers with optional chaining and then dereferencing
the result. m.relates_to is lifted out of the encrypted content, so a
response that has not decrypted yet still resolves as a child of the
poll while carrying no answers, and rendering the room threw.

PollResponses had the same unguarded read. The vote total's reduce and
a poll start with no answers threw on the same path.

Also align vote counting with MSC3381, shared with the voter list:

- max_selections defaults to 1
- an over long selection is truncated instead of spoiling the vote
- an unknown answer id spoils the whole vote
- an id repeated after truncation counts once
2026-08-16 23:02:03 +02:00
Erwan Leboucher 38dcaa14f7 fix(forward): keep search results from being dropped mid-typing
useAsyncSearch clears its result whenever the list identity changes. In the
room picker that list is derived from pickRoom, whose identity churned on
every GlobalModalManager render, so any room activity wiped the search and
fell back to recent rooms.

Key eligibleSet on the room ids instead of the pickRoom object, and make
close stable.
2026-08-16 22:54:25 +02:00
Erwan Leboucher e40782906d fix(crypto): reload on account switch and refresh verification status (#1817)
<!-- 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-16 19:57:11 +02:00
Erwan Leboucher d30a34acbe fix(ios): anchor the pwa viewport and banner to visualViewport.offsetTop (#1818)
<!-- 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:

- [ ] 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-16 19:54:20 +02:00
Erwan Leboucher f12cc044a4 fix(inbox): read the real event so notification previews show the message 2026-08-16 19:44:45 +02:00
Erwan Leboucher 6f568043f6 fix(ios): anchor the pwa viewport and banner to visualViewport.offsetTop 2026-08-16 19:41:41 +02:00
Erwan Leboucher cb3d723a8e fix(unread): clear thread counts on mark as read and honour m.fully_read
Closes #956, closes #1813
2026-08-16 19:31:22 +02:00
Erwan Leboucher 0e81d494a7 fix(crypto): reload on account switch and refresh verification status 2026-08-16 19:20:10 +02:00
Erwan Leboucher 9cd29e7606 fix: stop link preview cards and video on desktop build (#1812)
<!-- 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-16 14:05:42 +02:00
Erwan Leboucher 017e933b87 fix(media): play video and audio from the loopback origin on desktop 2026-08-16 13:35:37 +02:00
Erwan Leboucher 891561c8c9 fix(timeline): stop link preview cards resizing the timeline while scrolling 2026-08-16 12:33:51 +02:00
Erwan Leboucher 03ad55f949 feat(editor): replace Slate with ProseMirror in the composer 2026-08-16 12:19:46 +02:00
Erwan Leboucher 7b0d58210c fix(direct): reuse the existing chat when messaging a user getDMRoom (#1810)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

For ignored m.direct and only matched encrypted rooms with at most two
members, so an unencrypted chat or one holding a member who left was
never found. DirectCreate then dropped any match that was not in the
m.direct room list, leaving the create form to make a duplicate room.


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

- [ ] 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-16 12:13:46 +02:00
Erwan Leboucher 0c7496958a fix(direct): reuse the existing chat when messaging a user
getDMRoomFor ignored m.direct and only matched encrypted rooms with at most
two members, so an unencrypted chat or one holding a member who left was
never found. DirectCreate then dropped any match that was not in the
m.direct room list, leaving the create form to make a duplicate room.
2026-08-16 11:32:50 +02:00
7w1 fd3139e39e add the unstable colors key to the known keys list so it doesn't show up under misc 2026-08-15 22:22:27 -05:00
Erwan Leboucher edd948319c fix: keep devices sorted by last active time when some last active ti… (#1793)
…mes are null

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

Fix null last active times messing up the sorting.

#### 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-15 21:52:04 +00:00
Erwan Leboucher 0a0b0ad599 Change the send button to stay available while a message is sending 2026-08-15 18:00:54 +02:00
Erwan Leboucher 413adbe04a fix(call): keep incoming call audio playing when switching rooms 2026-08-15 17:57:03 +02:00
Erwan Leboucher 887a60a2b7 fix(settings): pop the pushed section entry so one back leaves mobile settings 2026-08-15 17:53:34 +02:00
Erwan Leboucher d5dd3245a6 fix(media): route Android media through the loopback server instead of a redirect 2026-08-15 17:44:30 +02:00
Erwan Leboucher 3f4c1a8c61 fix: allow auth with no auto discover and resolve sliding sync missing notifications count (#1804)
<!-- 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-15 16:05:33 +02:00
Erwan Leboucher 7356d2b205 fix(auth): fall back to the entered host when well-known lacks m.homeserver 2026-08-15 15:58:34 +02:00
Erwan Leboucher 0f623b4519 fix(unread): resolve real sliding sync unread counts instead of a lower bound 2026-08-15 15:51:01 +02:00
Erwan Leboucher d5ae2639cb fix: refill the sliding sync member roster and improve android media perf (#1803)
<!-- 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-15 15:03:01 +02:00
Erwan Leboucher 7d4000a231 fix(media): serve Android media over loopback, thumbnail timeline images 2026-08-15 14:29:19 +02:00
Erwan Leboucher 2b247a3377 fix: refill the sliding sync member roster when joined_count rises 2026-08-15 14:14:15 +02:00
Erwan Leboucher e966fff5e8 fix: stop synthesizing unread badges without read evidence (#1799)
<!-- 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:

- [ ] 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-15 13:26:57 +02:00
Erwan Leboucher 95d61963ea fix: stop synthesizing unread badges without read evidence 2026-08-15 13:20:27 +02:00
Erwan Leboucher 964a5c078c fix: deduplicates eventID 2026-08-15 10:07:44 +02:00
lunar-seal c1ca3a8bc5 fix: keep devices sorted by last active time when some last active times are null 2026-08-14 19:49:28 +02:00