Commit Graph
335 Commits
Author SHA1 Message Date
Daisy b50b10f696 Impl MSC4461: Storing per-message profiles for users 2026-08-03 17:38:05 +01:00
Erwan Leboucher 6d61d9b77c refactor: replace hardcoded Matrix event type strings with SDK constants 2026-08-01 16:20:36 +02:00
Erwan Leboucher 7261f79057 fix(call): apply Sable theme to Element Call iframe
The call embed iframe was not reflecting the Sable theme:

- Remote/custom themes: ThemeManager injects theme CSS asynchronously into
  a <style> in document.head. The call's MutationObserver only watched
  documentElement and body attributes, so updateInjectedCSS never re-ran
  when the remote theme stylesheet arrived. Observe document.head so
  resolved variable values are picked up.
- EC gradient body background: Element Call defaults to background=gradient
  which paints an SVG gradient via body[data-background="gradient"]::before.
  Pass background=solid in the widget URL params.
- Iframe html dot pattern: syncStyles copies the app's own html, body
  rule (dot pattern) into the iframe. Clear documentElement background
  alongside body.
- EC stylesheet cascade: Element Call loads its own stylesheets into the
  iframe after our injection, and uses !important at the same specificity
  as our overrides. Keep our injected <style> last in the iframe head
  and observe iframe head so our overrides keep winning the cascade.
2026-07-31 09:26:19 +02:00
7w1 b8343ce72f Fix fenced code block newline expansion 2026-07-30 22:36:38 -05:00
7w1 7935df05ae maybe fix katex rendering 2026-07-30 18:25:05 -05:00
Erwan Leboucher 42ea1d7fbe fix(call): forward ongoing call livekit transport to embed 2026-07-30 15:41:26 +02:00
Erwan Leboucher 922e62df65 fix(mobile): keep calls active in background 2026-07-29 16:02:22 +02:00
Shea 6e8ede1824 2 line fix for linkifying broken stuff
Signed-off-by: Shea <[email protected]>
2026-07-28 09:23:02 +03:00
Shea 68de59f361 more visual fixes
Signed-off-by: Shea <[email protected]>
2026-07-28 07:48:29 +03:00
7w1 1677c28826 fix(android/ios): keep calls active in background (#1420)
<!-- 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-28 02:54:01 +00:00
Erwan Leboucher 94e7f9fcc4 fix(voice-recorder): release the mic when a pending start is superseded 2026-07-27 21:20:27 +02:00
Josie c03f9e92dc persona shorthands in settings 2026-07-27 11:36:38 -05:00
Josie b816d08232 Switch proxy tags being stored as regex to prefix/suffix 2026-07-27 11:35:52 -05:00
Erwan Leboucher 5e447ccb44 fix(android): keep calls active in background 2026-07-27 15:32:39 +02:00
7w1 d4b4929c21 fix: ensure images without specified emoticon don't grow 2026-07-26 15:10:36 -05:00
7w1 1c85c1b417 cleanup, lazy loading, image viewer 2026-07-26 10:51:19 -05:00
Mohammad-Mohsen d4072d8aa9 Add support for displaying gzipped lottie (e.g. tgs) files 2026-07-26 10:51:19 -05:00
Erwan Leboucher dd254457a1 refactor: share cross-cutting hooks and fix the menu, thread and sheet regressions 2026-07-26 16:51:56 +02:00
7w1 63b4a686f9 fix(markdown): keep task list markers as text instead of checkbox input (#1354)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
it's not in the docs but well

#### 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-25 23:51:46 -05:00
Erwan Leboucher 90115b5705 refactor: remove unused exports flagged by fallow 2026-07-25 21:05:33 -05:00
7w1 3785159460 fix: include user image packs 2026-07-25 15:53:05 -05:00
Erwan Leboucher 3463d74a26 fix(markdown): keep task list markers as text instead of checkbox input 2026-07-25 19:47:31 +02:00
Erwan Leboucher 347920bfec fix(sticker): send using the pack's image info instead of downloading the sticker 2026-07-25 11:58:42 +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
7w1 fe56ab685d fix: feed room state to call widget after capabilities are notified (#1266)
<!-- 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-23 22:20:25 +00:00
Erwan Leboucher c0a4c6c5dc fix: feed room state to call widget after capabilities are notified 2026-07-24 00:15:52 +02:00
7w1 682adca6bb perf: split heavy room features from startup 2026-07-23 16:42:38 -05:00
Erwan Leboucher 1b61caa879 fix: use window origin for call widget parentUrl on Tauri 2026-07-23 23:22:04 +02:00
Erwan Leboucher 2c50c4c506 fix: render emotes at full resolution instead of 32px crop 2026-07-23 22:05:47 +02:00
Erwan Leboucher de227d2b63 fix: media 401, slow-internet loading, and native streaming decryption 2026-07-23 18:13:01 +02:00
mortebrume fcc66673ab fix: uniformise usage of fetchFn for matrix-sdk 2026-07-19 14:07:45 +02:00
Erwan Leboucher d13c195d47 fix(tauri): apply desktop review fixes and drop redundant unifiedpush plugin 2026-07-19 01:06:27 +02:00
Erwan Leboucher f8c5ebc491 fix(android): make UnifiedPush notifications work when app is open or killed 2026-07-19 01:06:26 +02:00
Erwan Leboucher e478112634 feat(android): add tauri-plugin-unifiedpush for intent-based UnifiedPush 2026-07-18 13:57:52 +02:00
Erwan Leboucher 2006bb3114 fix(lint): correct hook usage, drop unused imports, and type test mocks 2026-07-18 12:21:46 +02:00
Erwan Leboucher 95ae0d9bca fix(pdf): contain render failures instead of crashing the app 2026-07-18 00:15:12 +02:00
Erwan Leboucher 5670c9ef3f fix(tauri): use getAppOrigin() for all origin-dependent paths 2026-07-17 18:18:50 +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
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 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
7w1 3713694575 fetch image packs when needed 2026-07-13 13:25:34 -05:00
7w1 2cfa5a7fab fix recent emojis and sliding sync display 2026-07-09 10:16:58 -05:00
7w1 7eb44a41f6 formatting 2026-07-08 14:37:41 -05:00
7w1 9e895cd880 use stable image pack identifiers 2026-07-08 14:29:34 -05:00
7w1 633494f9d8 dependency bumps 2026-07-04 00:07:31 -05:00
7w1 8f8d9f8c07 Update call implementation and custom ringtones (#841)
<!-- 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. -->

Attempts to match spec notification/call end/join behaviors a little
better.
Adds an option for custom ringtones and ringbacks.
Adds permissions for calls.
Makes it so when you leave calls they don't instantly end
Makes it so calls are properly declined
Makes it so when a call is declined you don't automatically hang up
Includes updated sablecall
Removes the call controls from the call view and instead injects styles
to modify the widget appearance. For whatever reason font isn't working
quite yet, although it works locally :/
Adds some tests for things.
Fixes #857 
Fixes #855
Fixes #691
Might address #898, #908 (needs testing)

Still todo:
- ~~update changesets again~~
- ~~figure out how to style the call room backgrounds properly~~
- ~~inject twemoji font (or put in sable call?)~~
- ~~add phosphor icons to sable call?~~
- ~~add deafen button to sable call~~
- ~~fix odd ringtone looping behavior~~ hopefully fixed?
- ~~more testing~~ merge now, fix later?
- ~~Some file cleanup of some no longer necessary stuff due to removing
the call ui overlay thing~~
- ~~Fix some scaling related things~~

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

- [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 and AI was used to compare some other call
implementations and ensure spec and standard compliance and to figure
out how to inject the sable theme into all the widget elements.
2026-07-01 22:11:54 -05:00
7w1 2d8727c7c9 fix no pip when calling 2026-06-30 20:35:19 -05:00
7w1 03c0d08fc9 mute controls 2026-06-30 19:11:16 -05:00
7w1 9ddb3bbc37 fix button styles and settings menu 2026-06-30 16:29:11 -05:00