Commit Graph
1232 Commits
Author SHA1 Message Date
Erwan Leboucher e10ee62bb1 fix: satisfy media retry checks 2026-07-30 10:11:32 +02:00
Erwan Leboucher 9195f0fe2a fix: retry tauri media after token refresh 2026-07-30 10:02:12 +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 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 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
Erwan Leboucher 5d6d913bbd fix(crypto): preserve recovery key validation error 2026-07-29 19:53:43 +02:00
Erwan Leboucher 08b80e20af Merge branch 'dev' into fix/mobile-media-downloads 2026-07-29 19:27:24 +02:00
Erwan Leboucher a8a634634f fix(mobile): improve image saves and touch handling 2026-07-29 18:22:54 +02:00
Daisy e9e0c75ed8 Properly format PMP replies 2026-07-29 12:31:40 +01:00
Erwan Leboucher f05999dad2 feat(mobile): consolidate bottom sheets and rework the emoji picker 2026-07-29 09:57:40 +02:00
7w1 318a6a8d4d fix: release preview blob URLs (#1465)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Release preview Blob URLs when the opened media tab closes.

#### 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
- [ ] 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 02:11:16 +00:00
Erwan Leboucher 863baf37c0 fix: revoke upload metadata object URLs 2026-07-28 23:37:12 +02:00
Erwan Leboucher b0880fcafc fix: release preview blob URLs 2026-07-28 23:37:12 +02:00
Erwan Leboucher f8ec1a3690 fix(media): fall back when service worker auth is unavailable 2026-07-28 12:39:54 +02:00
Shea 68de59f361 more visual fixes
Signed-off-by: Shea <[email protected]>
2026-07-28 07:48:29 +03:00
7w1 fc6d0552fc fix(menu): open context menus instead of toggling them shut (#1431)
<!-- 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-07-28 03:51:09 +00:00
7w1 222d7893c0 fix: handle gallery messages without items (#1423)
<!-- 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-07-28 03:29:49 +00:00
Erwan Leboucher d235a8869f fix(mobile): tint system bar with animated sheet color 2026-07-27 15:44:14 -05:00
Erwan Leboucher 2417119c60 fix(menu): open context menus instead of toggling them shut 2026-07-27 21:48:31 +02:00
7w1 0c715de3e5 fix(mobile): restore error reporting actions (#1424)
<!-- 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-07-27 19:46:53 +00:00
7w1 e94925defa formatting 2026-07-27 14:45:12 -05:00
Erwan Leboucher d55197ebd9 fix(timeline): pin to the true bottom, size images to their frame, and rebuild rows on mid-timeline inserts
# Conflicts:
#	src/app/features/room/RoomTimeline.tsx
2026-07-27 21:24:33 +02:00
7w1 96a42c17e7 fix: show setting selects as dialogs on mobile and keep long-pressed sheets open (#1382)
<!-- 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-27 18:45:51 +00:00
Erwan Leboucher cb79b28b42 fix: restore poll rendering 2026-07-27 20:01:21 +02:00
Erwan Leboucher c188e17652 fix(mobile): restore error reporting actions 2026-07-27 19:56:25 +02:00
Erwan Leboucher 601254e150 fix: handle gallery messages without items 2026-07-27 19:56:10 +02:00
Josie 89effb2509 Persona picker style tweaks 2026-07-27 12:01:19 -05:00
7w1 45db505c04 fix(crypto): allow restoring key backup after the crypto store is wiped (#1379)
<!-- 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-27 16:06:13 +00:00
7w1 677717b437 fix: stop click handlers firing after long-press and drag-select (#1386)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Long-press on a room/space nav item opened the context menu, but the
synthetic click that followed navigated and immediately dismissed it.
Guard the click path with menu.consumeLongPressFired() (RoomNavItem,
SpaceTabs).

Drag-selecting across an abbreviation or mention link fired click on
mouseup, toggling the tooltip or navigating away and killing the
selection. Guard those handlers with a collapsed-selection check
(AbbreviationTerm, useMentionClickHandler) and make abbreviation text
selectable on desktop only (mobile keeps userSelect:none so the
long-press context menu isn't hijacked by the native callout).

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-07-27 15:56:50 +00:00
Erwan Leboucher da1f50bf39 fix(mobile): fill screen for room and space settings dialog 2026-07-27 11:57:24 +02:00
Erwan Leboucher 249977a8a0 fix: stop click handlers firing after long-press and drag-select
Long-press on a room/space nav item opened the context menu, but the
synthetic click that followed navigated and immediately dismissed it.
Guard the click path with menu.consumeLongPressFired() (RoomNavItem,
SpaceTabs).

Drag-selecting across an abbreviation or mention link fired click on
mouseup, toggling the tooltip or navigating away and killing the
selection. Guard those handlers with a collapsed-selection check
(AbbreviationTerm, useMentionClickHandler) and make abbreviation text
selectable on desktop only (mobile keeps userSelect:none so the
long-press context menu isn't hijacked by the native callout).
2026-07-27 08:30:35 +02:00
Erwan Leboucher d5d7c8b290 fix(crypto): base backup recovery on a structural signal and reset restore state per account 2026-07-27 08:25:26 +02:00
Erwan Leboucher ac09f73c02 fix(crypto): allow restoring key backup on a verified device 2026-07-27 08:25:26 +02:00
Erwan Leboucher 1ef590866d fix: show setting selects as dialogs on mobile and keep long-pressed sheets open 2026-07-27 08:21:22 +02:00
Shea 7c3da11b2e more visual fixes
Signed-off-by: Shea <[email protected]>
2026-07-27 06:01:32 +03:00
7w1 efab099f7c fix(media): revoke decrypted media blob URLs that outlive their component (#1381)
…

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

test and worked well no leak

#### 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-27 02:41:58 +00:00
7w1 de744505d3 fix race conditions 2026-07-26 21:40:21 -05:00
7w1 0f4df3842f formatting 2026-07-26 18:43:42 -05:00
7w1 a5ca9dfd04 fix: scrolling, closing, and animations in bottom sheets 2026-07-26 18:40:40 -05:00
7w1 f5650a3a65 Fix the timeline loading a room's entire history on open (#1373)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Opening a room paginated until it ran out of history, scrolling the view
up as it went. Worst rooms burned 8-10s of CPU per open on a Pixel 3a.

The viewport-fill effect compared `processedEvents.length` against a
value captured in the same render, so the guard was always true and the
condition reduced to `!hasRealScrollRoom || atTop`. It re-runs on every
length change, so staying near the top kept it firing. Pre-existing
since March, triggered by #1363 leaving fewer rendered events per page.

Also in here:

- `setAtBottom` was only called from the scroll handler, so a resize
(composer, keyboard) left it stale and killed auto-follow. Now
recomputed from the ResizeObserver.
- Notification sound gates on window focus instead of tab visibility. A
visible but unfocused window is now silent unless background
notification sounds is on.
- Desktop reads window focus from `onFocusChanged`, since
`focusin`/`focusout` miss app switches. Mobile and web unchanged.

Pixel 3a, release builds, CPU per room open:

| | before | after |
|---|---|---|
| Sable Announcements | 9.72s | 1.06s |
| 1 (DM) | 8.03s | 2.57s |
| 10 DMs | 31.34s | 17.19s |

Fixes #1371

#### 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-26 20:54:42 +00:00
7w1 6be8d77330 fix unrelated test 2026-07-26 15:35:51 -05:00
lunar-seal 5d1b61e094 feat: add always inline editor option for multiline messages
# Conflicts:
#	src/app/features/settings/general/General.tsx
2026-07-26 15:28:23 -05:00
7w1 d4b4929c21 fix: ensure images without specified emoticon don't grow 2026-07-26 15:10:36 -05:00
7w1 58f8fad580 fix: platform bindings after rebase 2026-07-26 13:51:45 -05:00
hazre 45c359dea6 refactor(ci): unify cloudflare infra workflows and remove is_release_tag
Signed-off-by: hazre <[email protected]>

fix: resolve rebase merge conflicts

Signed-off-by: hazre <[email protected]>
2026-07-26 13:33:40 -05:00
hazre 0e72405875 feat: unify product name and build flavor across builds
Signed-off-by: hazre <[email protected]>
2026-07-26 13:32:41 -05:00
7w1 c9652725f7 Add support for displaying gzipped lottie (e.g. tgs) (#1104)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Hi,
This PR adds support for displaying gzipped Lottie files, such as `.tgs`
(Telegram sticker) files.

Demo video:
<img width="640" height="694" alt="demo"
src="https://github.com/user-attachments/assets/0941b014-8031-4a78-85ff-c62c90afb877"
/>


## How it works

Gzipped files begin with a fixed byte sequence (`1f 8b`), which
distinguishes them from standard image formats (PNG, WebP, JPG). The
implementation detects this signature in the file header and
automatically decompresses gzipped content before parsing it as Lottie
JSON. If parsing succeeds, the decompressed animation is passed to the
Lottie player.

To test this feature, download and unzip
[AnimatedSticker.tgs.zip](https://github.com/user-attachments/files/30024283/AnimatedSticker.tgs.zip),
then send it as `m.image` or `m.sticker`.

## What I have tested
- [x] Works as `m.image`, `m.sticker`, and inline emoji on Chrome
- [x] Works as `m.image` and `m.sticker` on Safari
- [x] Functions correctly in sticker and emoji picker on both browsers

## Next steps
- [ ] Fix inline Lottie emoji width on Safari
- [ ] Respect `autoplayStickers` setting when rendering stickers (set
`autoplay={false}` in DotLottieReact)
- [ ] Respect `autoplayEmojis` setting when rendering emojis (set
`autoplay={false}` in DotLottieReact)

---

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

- [x] 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-26 12:59:26 -05:00
7w1 2a372dfc25 lint 2026-07-26 12:27:43 -05:00
7w1 380ade185b simplify some things 2026-07-26 12:14:39 -05:00