Commit Graph
3571 Commits
Author SHA1 Message Date
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 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 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
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 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 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 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 1747db887b fix permission checks for encrypted rooms 2026-07-16 12:33:15 -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
Erwan Leboucher 6412a0ac91 feat: show unread count in page title 2026-07-16 10:58:47 +02:00
Erwan Leboucher f3cb4b74c5 fix: re-anchor new messages divider at last read when tabbing out 2026-07-16 10:41:24 +02:00
7w1 b68bc73e80 fix unreads
seems to require a timeline item sadly
2026-07-15 17:41:29 -05:00
7w1 071b29bff7 adjust sliding sync toggle style and login with sso compatibility 2026-07-15 17:10:28 -05:00
7w1 539125cb14 fix presence sync and member list subscription 2026-07-15 16:48:44 -05:00
Erwan Leboucher 8d8692daec fix: render redacted state events as deleted instead of hiding them 2026-07-15 23:34:55 +02:00
7w1 ae69b8bbaf fix: render redacted messages as deleted instead of unsupported (#1089)
<!-- 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. -->

When sliding sync delivers a message that has been redacted, the
redaction event may not be in the client's timeline. In this case,
mEvent.isRedacted() returns false even though the event content has
already been stripped to {}.

Sable's timeline renderer only checked isRedacted(), so these messages
fell through to the fallback renderer and displayed as "Unsupported
message (no body)".
This adds an isContentEmpty check (Object.keys(safeContent).length ===
0) so that m.room.message events with empty content render as "Message
deleted" instead.

<img width="321" height="73" alt="Screenshot 2026-07-15 at 22 57 30"
src="https://github.com/user-attachments/assets/82cae806-1a14-473d-b45c-045de6032b81"
/>

```json
{
"content": {},
"origin_server_ts": 1784136316933
},
...
{
   "content": {
                "redacts": "$3xt7_zZiHMYPEdrDXaEFvu5cPtv-flc-oijPuv9elbU"
            },
            "origin_server_ts": 1784136364105,
```

#### 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-15 21:16:47 +00:00
7w1 1300e3ac1c stabilize sliding sync room state and membership updates 2026-07-15 16:11:27 -05:00
Erwan Leboucher 2b1f7c5971 fix: render redacted messages as deleted instead of unsupported 2026-07-15 23:10:02 +02:00
7w1 ea95d17f99 Fix file downloads not always being the right files (#1086)
<!-- 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 #1084 

Centralizes the download file name generation and adds some related
safety and hardening

#### 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-15 16:08:45 -05:00
7w1 487955465e Merge branch 'dev' into sliding-sync-stablization
# Conflicts:
#	src/app/pages/auth/login/loginUtil.ts
#	src/app/pages/client/BackgroundNotifications.tsx
#	src/app/pages/client/space/SpaceProvider.tsx
#	src/client/initMatrix.ts
2026-07-15 14:59:29 -05:00
7w1 6f73b46c0e fix: allow joining spaces with sliding sync enabled (#1085)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

With sliding sync enabled, joining a space was impossible. The root
cause was a navigation dead-end: when a room's m.room.create event
wasn't yet in the client store (common with sliding sync's delivery
model), isSpaceRoom() returned false, causing spaces to be misrouted.

<!-- 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
- [ ] 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-15 19:42:06 +00:00
Erwan Leboucher fae12afe10 fix: allow joining spaces with sliding sync enabled 2026-07-15 21:40:22 +02:00
7w1 98ecbaebce show room members in dev tools (#1088)
<!-- 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. -->

removing a cinnyism

#### 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-15 14:35:42 -05:00