Commit Graph
289 Commits
Author SHA1 Message Date
Erwan Leboucher 17dab8cc23 fix(ios): route in-app notification sounds through UNNotificationSound 2026-07-25 19:14:46 +02:00
Erwan Leboucher 2520ceb2b8 chore(tauri): make the devtools plugin opt-in behind a cargo feature 2026-07-25 11:58:42 +02:00
Erwan Leboucher d41abbfd53 fix(media): wait for the session instead of failing media requests at startup 2026-07-25 11:58:42 +02:00
7w1 06ce536666 please work 2026-07-24 22:25:28 -05:00
7w1 3f634d188f maybe itll work 2026-07-24 22:08:50 -05:00
Erwan Leboucher 43a1e4cfe0 perf(android): cache gradle, pin NDK, use lld linker 2026-07-24 19:46:28 -05:00
hazre 314cb23dcd chore(tauri): update cargo.toml metadata
Signed-off-by: hazre <[email protected]>
2026-07-24 19:42:44 -05:00
7w1 44ae776a58 fix ios build again? 2026-07-24 18:28:32 -05:00
7w1 aff701889b fix: (tauri) open homeserver-url in user chip via opener plugin (#1277)
<!-- 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. -->

on android/tauri: opening the homeserver url in the user chip replaces
sable.
fix: use the opener-plugin to follow the url, as in verification.tsx
https://github.com/SableClient/Sable/blob/444f2fc9c59900fb39ae621bc4badf75b9b0df78/src/app/features/settings/devices/Verification.tsx#L275-L285

on android: clicking in a youtube embed e.g. the video title replaces
the entire app with youtube
fix: on android specifically, make urls that do not lead to sable open
in the system browser
this doesn't work on other platforms, but is not needed for at least the
linux/cef version

Fixes #1295

#### 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-24 22:09:48 +00:00
Erwan Leboucher 8d90be9c80 fix(ios): link AudioToolbox via tauri.conf iOS frameworks 2026-07-25 00:00:20 +02:00
Erwan Leboucher a630be2296 fix(ios): declare AudioServicesCreateSystemSoundID URL param as const pointer 2026-07-24 23:32:18 +02:00
7w1 0d901333db fix mobile builds (#1299)
<!-- 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-24 16:18:28 -05:00
7w1 a95cbf6a65 fix ios build 2026-07-24 16:13:43 -05:00
7w1 81c10e0d99 fix android build 2026-07-24 16:12:04 -05:00
7w1 4cbc077864 fix(notifications): route push transports by explicit provider (#1273)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fixes several Android push-notification bugs, and bumps
`tauri-plugin-notifications` to pick up the matching native fixes
(SableClient/tauri-plugin-notifications#11).

**Transport routing**
- Pass `provider: 'fcm'` / `provider: 'unifiedpush'` explicitly on
register, so the plugin routes deterministically instead of inferring
from saved state (switching to native no longer keeps using the old
UnifiedPush distributor).
- `switchBackgroundPushTransport` is break-before-make (deactivate old →
register new), which the plugin's single-active-provider guard requires.
If the new registration fails, the previous transport is now
**restored** instead of leaving the device with no pusher while the UI
still says push is on.
- Skip no-op mode changes when the resolved provider is unchanged.
- `enablePushNotifications` no-ops under Tauri instead of throwing
(fixes the SABLE-162 unhandled rejection).

**Background notification previews**
- Encrypted message bodies could appear in notifications with "show
encrypted content" disabled: `isEncryptedRoom` is derived from the local
room, which is absent on a cold start from push, so the gate passed and
the decrypted body was shown. Encryption is now taken from the fetched
event itself.
- A notification dismissed while its preview fetch was in flight could
reappear ("ghost" notification), the async update now checks the cache
is still the live one.
- An earlier message no longer stays stuck on the "New message"
placeholder when a second push arrives before its preview resolves.
- The second (enriching) post is awaited so failures are logged instead
of becoming unhandled rejections, and the per-room seen-event set is
capped.

#### 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-24 21:10:49 +00:00
Erwan Leboucher 329a5ee6bd chore(tauri): bump tauri-plugin-notifications to the notification hardening fixes 2026-07-24 23:05:00 +02:00
7w1 82d1a2eb99 fix failing mobile builds (#1297)
<!-- 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-24 15:58:35 -05:00
7w1 03cb030534 fix failing mobile builds 2026-07-24 15:56:18 -05:00
Erwan Leboucher 4caa4e5832 Merge remote-tracking branch 'origin/dev' into fix/media-slow-network
# Conflicts:
#	src/app/generated/tauri/commands.ts
#	src/app/generated/tauri/events.ts
#	src/app/generated/tauri/index.ts
#	src/app/generated/tauri/types.ts
2026-07-24 22:34:25 +02:00
Erwan Leboucher 16f44b6adb fix(media): decrypt encrypted media on Android and improve slow-network loading 2026-07-24 22:30:18 +02:00
lunar-seal 0a6503c1a4 fix: open external links on android in system browser 2026-07-24 22:18:23 +02:00
7w1 584ddcc63d fix: route mobile notification sounds through ring volume stream (#1269)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Fixes #

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
2026-07-24 19:38:37 +00:00
Erwan Leboucher a3f4a4683c fix: route mobile notification sounds through ring volume stream 2026-07-24 20:50:37 +02:00
7w1 285cb46d93 fix(call): bypass PNA for split-horizon DNS homeservers (#1272)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

- wry: set_cors_allowlist for HTTP(S) targets so Element Call iframe
fetches to LAN-IP homeservers aren't PNA-blocked
- CEF: disable LocalNetworkAccessChecks feature flags
- Android/iOS: local-network-access added to iframe allow attribute

#### 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-24 17:29:15 +00:00
7w1 cbf502622b ci(android): speed up build by dropping x86 ABIs and caching Gradle (#1285)
<!-- 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. -->

the other platform are for simulator so we can drop them and make
building faster

#### 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-24 15:32:59 +00:00
Erwan Leboucher 7fc30f3f7f ci(android): speed up build by dropping x86 ABIs and caching Gradle 2026-07-24 17:17:05 +02:00
Erwan Leboucher 7953ee50a7 fix(call): bypass PNA for split-horizon DNS homeservers
Element Call's iframe uses native window.fetch, bypassing Sable's Rust
proxy. With tauri://localhost classified as public address space, PNA
blocks fetches to homeservers resolving to LAN IPs.

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

Same-origin policy and CSP remain enforced.
2026-07-24 13:57:41 +02:00
Erwan Leboucher 8042533981 fix(media): sniff decrypted image content type and harden encrypted media cache 2026-07-24 10:25:40 +02:00
Erwan Leboucher 1273136f01 feat(sentry): enable Sentry for Tauri builds 2026-07-24 08:02:45 +02:00
Erwan Leboucher 807135e734 Add native push notifications with reply actions, content preview, and configurable gateway 2026-07-23 14:45:06 -05:00
Erwan Leboucher de227d2b63 fix: media 401, slow-internet loading, and native streaming decryption 2026-07-23 18:13:01 +02:00
Erwan Leboucher 58ee2d13a0 fix(cef): resize webview with window 2026-07-23 11:27:04 +02:00
Erwan Leboucher 84832d7420 feat: make native title bar a toggle 2026-07-23 08:36:22 +02:00
7w1 fa9a763395 fix(tauri): deduplicate concurrent media fetches (#1205)
<!-- 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
- [ ] 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-22 16:40:27 +00:00
7w1 3000ea16af clippy 2026-07-22 11:38:34 -05:00
7w1 f947dd5c78 formatting 2026-07-22 11:33:42 -05:00
7w1 d2a3f91701 fix: add temp cache for larger files and deduplicate inflight large files 2026-07-22 11:29:47 -05:00
Erwan Leboucher 5e0c765a61 fix(tauri): allow desktop updater commands 2026-07-22 15:28:30 +02:00
Erwan Leboucher e6b16c883c fix(media): reduce loading contention 2026-07-22 15:02:49 +02:00
Erwan Leboucher b23625075c fix(tauri): deduplicate concurrent media fetches 2026-07-22 08:17:55 +02:00
hazre e1b0785eb1 fix(tauri): hide window on close to tray
workaround for #1178 until it's fixed upstream.

Signed-off-by: hazre <[email protected]>
2026-07-22 01:27:37 +02:00
Erwan Leboucher 044ca94b9f fix(tauri): correct Linux CEF startup 2026-07-21 22:56:02 +02:00
7w1 142813d80a fix failing linux build 2026-07-21 12:31:42 -05:00
7w1 2040c1bfb8 perf: make download dialogue blocking
it calls a blocking function, might as well make it all blocking to free up background threads
2026-07-21 12:28:39 -05:00
7w1 502980ce70 perf: file upload performance 2026-07-21 12:18:22 -05:00
7w1 6dab80de31 fix(tauri): don't leak wry into CEF builds + don't gate updater manifest on android (#1165)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

fix packaging to not including wry in cef build + don't wait 45 minutes
to release the desktop auto update json

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-21 16:25:39 +00:00
7w1 9869bf3339 unify naming and clean up press detection and fix selection 2026-07-21 10:59:01 -05:00
7w1 f72eb6cfea fix(ci): update builds to display nightly 2026-07-20 23:23:04 -05:00
Erwan Leboucher e8c8d4b4f0 feat(mobile): haptics, iOS keyboard inset, composer scroll, hardware back button 2026-07-20 18:01:14 -05:00
7w1 45558f7a90 feat(mobile): add sharing to sable (#1159)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

What it says on the tin.

#### 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
- [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-20 22:47:05 +00:00