Commit Graph
6704 Commits
Author SHA1 Message Date
Erwan Leboucher 95acdfd8c0 fix(linux): declare GStreamer WebRTC plugin deps for deb/rpm 2026-07-17 18:54:22 +02:00
7w1 995435bca0 fix profile data not syncing on mobile 2026-07-17 11:53:23 -05: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 d434097366 fix: improve timeline reliablity to follow new message 2026-07-17 16:17:11 +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
7w1 dcdb0b60f3 improve the caching i think 2026-07-16 14:29:04 -05:00
7w1 4032d1f184 remove stale rooms 2026-07-16 14:11:35 -05:00
7w1 f24c03371e extract client config and have it block load 2026-07-16 14:04:41 -05:00
7w1 aadf445e23 changeset and disable presence manager from dev 2026-07-16 13:44:55 -05:00
7w1 7c29062403 Merge remote-tracking branch 'origin/dev' into sliding-sync-stablization 2026-07-16 13:38:46 -05:00
7w1 08fd774312 Create fix-join-existing-calls-without-livekit.md 2026-07-16 13:16:10 -05:00
7w1 c7913e8397 dont require livekit to answer/join calls 2026-07-16 13:12:31 -05:00
7w1 00fd9ca7ef fix room naming 2026-07-16 12:52:59 -05:00
7w1 c74a546efb Create fix-encrypted-message-power-level.md 2026-07-16 12:39:23 -05:00
7w1 1747db887b fix permission checks for encrypted rooms 2026-07-16 12:33:15 -05:00
7w1 b07f7a60d9 Theme system improvements (#1087)
<!-- 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 #774 
Adds pages for tweaks/themes browsing
Adds some simple catalog auto updating based on hashes
Adds the ability to load themes from uploaded `.sable.css` files in
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:

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

Tests were AI generated
2026-07-16 12:18:22 -05:00
7w1 f5bc7594df Merge branch 'dev' into theme-system-improvements
# Conflicts:
#	src/app/components/message/MsgTypeRenderers.tsx
2026-07-16 12:11:04 -05:00
7w1 29d8df9982 only update installed themes 2026-07-16 12:03:34 -05:00
7w1 2f4dcc0d8d fix: re-anchor new messages divider at last read when tabbing out (#1095)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
The "New Messages" divider was anchored to the read position captured
when the room was first opened (unreadInfo is computed once on mount and
never refreshed while the room stays open). So if you kept a room open,
tabbed away, and messages streamed in, the timeline auto-scrolled but
the divider stayed stuck at the open-time position instead of marking
where you actually left off.

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:47:26 +00:00
7w1 e13dc1616c fix: render redacted state events as deleted instead of hiding them (#1090)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

When a state event (room name, topic, avatar, membership, pins, etc.) is
redacted, Sable either:
- renders it with empty/garbage content (e.g. "changed room name" with
no name), or
- hides it entirely (the fallback handler returns null on empty content)

Fixes #988

#### 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-07-16 15:46:02 +00:00