Commit Graph
5216 Commits
Author SHA1 Message Date
Erwan Leboucher 328288cd68 chore(android): prepare native FCM push (Sygnal) wiring behind google-services.json 2026-07-17 20:50:19 +02:00
Erwan Leboucher 38fd34f708 fix(android): save downloaded attachments via native file system plugin 2026-07-17 20:50:19 +02:00
Erwan Leboucher eb445e15e5 feat(tauri): depend on geoclue for webview geolocation on linux 2026-07-17 20:50:15 +02:00
Erwan Leboucher 0a4b1c4a69 feat(tauri): prompt for and remember webview permissions on linux 2026-07-17 20:41:52 +02:00
Erwan Leboucher a3e3b8b120 feat(tauri): add macOS menu and allow desktop notifications on linux 2026-07-17 20:25:43 +02:00
Erwan Leboucher 2f5ac8e0e7 fix(tauri): use native clipboard plugin so copy/paste works on linux 2026-07-17 20:06:54 +02:00
Erwan Leboucher 32c902158b fix(notifications): start the foreground push transport listener at client boot 2026-07-17 20:00:35 +02:00
Erwan Leboucher e2b3e6f126 fix(tauri): set native media session token so authenticated media loads 2026-07-17 19:53:47 +02:00
Erwan Leboucher 352b61385b fix(linux): only auto-grant camera/mic webkit permissions, deny the rest 2026-07-17 19:53:46 +02:00
Erwan Leboucher 7c6114cf35 fix(tauri): only enable devtools in debug builds 2026-07-17 19:53:46 +02:00
Erwan Leboucher 7abb7b455d perf(tauri): reuse a shared reqwest client in the media protocol 2026-07-17 19:45:00 +02:00
niki a69fbfbc52 Fix android assets 2026-07-17 19:36:17 +02:00
Erwan Leboucher d1eea80ad6 fix(tauri): route custom-protocol hosts through native fetch so encrypted media loads on android 2026-07-17 19:35:25 +02:00
Erwan Leboucher 1c5b1b06ab fix(android): guard release signing config when keystore.properties is missing 2026-07-17 19:35:25 +02:00
Erwan Leboucher 04a44ea5b2 fix(android): register moe.sable.app deep-link scheme in manifest 2026-07-17 19:35:25 +02:00
Erwan Leboucher 4ab6572e5d fix(android): bump tao to 0.35.3 to prevent deep-link onNewIntent panic 2026-07-17 19:35:24 +02:00
Erwan Leboucher 64310c7226 fix(linux): enable WebKitGTK WebRTC settings and auto-allow media permissions 2026-07-17 18:59:30 +02:00
Erwan Leboucher 95acdfd8c0 fix(linux): declare GStreamer WebRTC plugin deps for deb/rpm 2026-07-17 18:54:22 +02:00
Erwan Leboucher 5670c9ef3f fix(tauri): use getAppOrigin() for all origin-dependent paths 2026-07-17 18:18:50 +02:00
Erwan Leboucher 213b1b8e3a fix(tauri): disable native drag-drop handler for HTML5 DnD
Tauri 2.x intercepts OS drag-drop events by default, which prevents
HTML5 drag-and-drop (file uploads, image drops) from reaching the
WebView.
2026-07-17 18:11:25 +02:00
Erwan Leboucher d936986244 fix(tauri): declare camera/mic usage strings and allow inline styles
WKWebView hides navigator.mediaDevices entirely unless the app
declares NSCameraUsageDescription and NSMicrophoneUsageDescription
in Info.plist, which caused Element Call to bail with "Your
browser does not support WebRTC". Add a custom Info.plist merged
via tauri.conf.json bundle.macOS.infoPlist.

Also add style-src 'unsafe-inline' to the CSP so the embedded
Element Call iframe's inline styles are not silently dropped.
2026-07-17 18:11:13 +02:00
Erwan Leboucher a2ce65da1c fix(tauri): use valid origin for call widget parentUrl
On Tauri 2.x macOS/Linux, window.location.origin returns the string
"null" because tauri:// is a non-standard (opaque) URL scheme per
the WHATWG URL spec. The embedded Element Call widget parses
parentUrl with new URL() — "null" is not a valid absolute URL, so
it throws TypeError, the widget silently falls back to standalone
mode (no widget API), and calls fail with "Room not found".

Construct the origin from protocol + host to get a valid absolute URL
(tauri://localhost) instead of the opaque-origin serialization.
2026-07-17 17:18:57 +02:00
niki 35510f1f04 Do not show desktop settings on mobile 2026-07-17 16:59:14 +02:00
niki d0cec4a12c Fix notifications 2026-07-17 16:59:08 +02:00
Erwan Leboucher cce57580e5 feat: handle image via uri scheme protocol
Make useRenderableMediaUrl idempotent under Tauri: it now rewrites
raw authenticated-media https URLs to sable-media:// even when the
caller bypassed the mxcUrlToHttp wrapper. This fixes 401 errors for
avatars from ~10 call sites (sidebar spaces, member tiles, reaction
viewer, etc.) that use the raw SDK method directly.

- Extract rewriteAuthenticatedMediaUrl helper in matrix.ts
- Apply it in useRenderableMediaUrl Tauri fast-path
- Use it from mxcUrlToHttp wrapper (single source)
- Add tests for both the helper and hook Tauri paths
2026-07-17 16:26:39 +02:00
Erwan Leboucher 56382a90d8 fix(tauri): unconditional banner media hook; real loadImageElementFromMediaUrl for stickers 2026-07-17 14:33:40 +02:00
Erwan Leboucher 78c9b528bc feat(tauri): apply niki's tauri fixes; render mxc emoji/reactions via renderable urls 2026-07-17 14:28:54 +02:00
Erwan Leboucher f8d7c050f5 fix(tauri): render authenticated inline images via token blob-fetch when no service worker 2026-07-17 14:17:03 +02:00
Erwan Leboucher e786c20440 feat(tauri): native OIDC login via system browser + sable:// deep-link callback 2026-07-17 13:05:57 +02:00
Erwan Leboucher b180c23310 fix: show tauri window via TauriFrontendReady in App 2026-07-17 12:34:47 +02:00
Erwan Leboucher 6f072376f3 fix: use es2022 vite target for tauri builds to avoid top-level-await esbuild bug 2026-07-17 12:24:31 +02:00
Erwan Leboucher d0c5d7d8cf fix: reconcile tauri integration with dev (media modules, routes, vite target, deferred push/desktop wiring) 2026-07-17 12:21:07 +02:00
Erwan Leboucher ec91c3579a Merge remote-tracking branch 'origin/dev' into feat/tauri-desktop
# Conflicts:
#	.gitignore
#	.prettierignore
#	.vscode/settings.json
#	eslint.config.js
#	flake.lock
#	flake.nix
#	knip.json
#	package.json
#	pnpm-lock.yaml
#	src/app/components/AuthFlowsLoader.tsx
#	src/app/components/ClientConfigLoader.tsx
#	src/app/components/SpecVersionsLoader.tsx
#	src/app/components/SwipeableChatWrapper.tsx
#	src/app/components/SwipeableOverlayWrapper.tsx
#	src/app/components/emoji-board/components/Item.tsx
#	src/app/components/message/content/ImageContent.tsx
#	src/app/components/message/content/ThumbnailContent.tsx
#	src/app/components/power/PowerIcon.tsx
#	src/app/components/url-preview/ClientPreview.tsx
#	src/app/features/room/RoomInput.tsx
#	src/app/features/room/message/Message.tsx
#	src/app/features/settings/Settings.tsx
#	src/app/features/settings/emojis-stickers/GlobalPacks.tsx
#	src/app/features/settings/notifications/PushNotifications.tsx
#	src/app/features/settings/notifications/SystemNotification.tsx
#	src/app/hooks/useClientConfig.ts
#	src/app/hooks/useIntegrationManager.ts
#	src/app/hooks/useSessionProfiles.ts
#	src/app/pages/App.tsx
#	src/app/pages/Router.tsx
#	src/app/pages/auth/SSOLogin.tsx
#	src/app/pages/auth/login/Login.tsx
#	src/app/pages/auth/register/PasswordRegisterForm.tsx
#	src/app/pages/auth/register/Register.tsx
#	src/app/pages/auth/reset-password/PasswordResetForm.tsx
#	src/app/pages/client/AutoDiscovery.tsx
#	src/app/pages/client/BackgroundNotifications.tsx
#	src/app/pages/client/ClientNonUIFeatures.tsx
#	src/app/pages/client/ClientRoot.tsx
#	src/app/pages/client/SyncStatus.tsx
#	src/app/plugins/react-custom-html-parser.tsx
#	src/app/state/serviceWorkerRegistration.ts
#	src/app/state/settings.ts
#	src/app/utils/matrix.ts
#	src/app/utils/notifications.ts
#	src/app/utils/settingsSync.test.ts
#	src/client/initMatrix.ts
#	src/index.tsx
#	src/sw.ts
#	src/sw/pushNotification.ts
#	tsconfig.json
#	vite.config.ts
2026-07-17 12:12:26 +02:00
Erwan Leboucher e6ddedd4dd Merge branch 'pr-134' into test/tauri-134-850 2026-07-17 11:22:43 +02:00
7w1 7b60c45ec5 Fix unnecessary livekit support checks (#1099)
<!-- 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. -->

Allows users without livekit backends setup to join existing calls again

#### 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-16 22:37:10 -05:00
7w1 280f6228b5 Fix encrypted message perms & DM names (#1098)
<!-- 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 #1097 
Fixes #1092 

#### 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-16 22:32:47 -05:00
7w1 30204f54b5 Bring sliding sync out of experimental (#1069)
<!-- 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. -->

- Moved sliding sync into a shared "Data Sync" general section with the
settings sync
- Added a sliding sync toggle to the login screen, added a "swap to
sliding/classic sync" clickable message to the loading screen.
- Removed all the instance host options for sliding sync for an instance
(afaik, it's usable ootb on Synapse, c10y, and tuwunel, so no reason to
force it to be disabled). **Sliding sync is still disabled by default**,
it's just more accessible now and should allow larger accounts to
actually log in instead of using work arounds to log in so they can
toggle the setting.
- UI shell is rendered prior to full sdk init, technically means things
load ever so slightly faster, but also feels faster since it's less
loading screen and more UI shell. Also applies to standard sync.
- Removed fallback loading screens from config and spec version checkers
to prevent brief flickers of their messages and added the background
grid to the base index.html to remove the flicker of white prior to any
other files loading in.
- Made the initial config fetch & versions check async, probably only
saving a few milliseconds but easy enough. Applies to standard sync as
well.
- Made crypto start up concurrent instead of linear
- Adjusted the initial sliding sync to be more minimal, aiming for only
what's necessary to render a space/room.
- I *think* I've fixed all mentioned bugs that are sliding sync specific
that I can isolate in #39
- cached rooms and spaces in sidebar that get updated as syncs complete
so the ui is usable prior to syncing all data on refreshes

Fixes #1091

#### Type of change

- [x] 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:

- [ ] 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:

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

AI did the tests, and also reviewed my code because some of this stuff
is confusing. anyway. it works. i think.
2026-07-16 22:29:15 -05:00
7w1 c2dd174394 add banners to subscription 2026-07-16 17:25:45 -05:00
7w1 56bfccccc2 scope extensions
doesn't work on c10y :(
2026-07-16 17:10:58 -05:00
7w1 b5e0ec8143 cleanup unused stuff 2026-07-16 16:41:27 -05:00
7w1 01587d9cad Merge branch 'dev' into sliding-sync-stablization 2026-07-16 16:30:37 -05:00
7w1 c7c528a3a0 formatting 2026-07-16 16:15:21 -05:00
7w1 f2078ac0b2 Merge branch 'sliding-sync-stablization' of https://github.com/SableClient/Sable into sliding-sync-stablization 2026-07-16 16:11:36 -05:00
7w1 2d95c353bf optimize room data subscriptions 2026-07-16 16:11:32 -05:00
7w1 b05d5f9178 fix: render new messages divider when read receipt anchors on a filtered event (#1101)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Follow-up to #1095. The divider re-anchoring worked, but in busy rooms
the divider often didn't show up at all after tabbing back in.
Now the divider position is tracked across every iterated event, before
the render filters run, so a receipt on a filtered event still places
the divider on the next rendered message. Regression tests cover each
filtered anchor type; they fail on `dev` and pass here.

<!-- 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-16 20:55:32 +00:00
Erwan Leboucher 131224d66c fix: render new messages divider when read receipt anchors on a filtered event 2026-07-16 22:43:30 +02:00
7w1 303fa7028b fix: close IndexedDB connections to prevent leaks (#1100)
### Description

Open db should be closed so they don't leaks

<!-- 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-16 15:14:40 -05:00
7w1 e0d7406238 hide connecting and add some diagnostics 2026-07-16 15:09:55 -05:00
Erwan Leboucher 4384599a79 fix: close IndexedDB connections to prevent leaks 2026-07-16 22:08:45 +02:00
7w1 1e0acd629e Update improve-sliding-sync.md 2026-07-16 14:44:58 -05:00