Commit Graph
657 Commits
Author SHA1 Message Date
7w1 3f221da359 feat(tauri): cacheable media responses and Range streaming for video/audio (#1157)
<!-- 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)
- [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:

- [ ] 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 20:27:19 +00:00
Erwan Leboucher 3a607a3217 feat(tauri): cacheable media responses and Range streaming for video/audio 2026-07-20 13:24:33 +02:00
Erwan Leboucher 67b891541c perf(mobile): overlapping-panels swipe, immediate room open, progressive decryption 2026-07-20 09:16:51 +02:00
Erwan Leboucher 3b4e412675 feat(notifications): android push over webpush for embedded FCM and UnifiedPush 2026-07-19 23:40:41 +02:00
7w1 3ea5cef5ca fix(tauri): prevent android media loading stalls and object-url leaks (#1129)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fix media loading stalling on Android/desktop after paginating through
history: move the native media cache's file I/O off the async runtime,
cap concurrent media fetches, add request timeouts, and revoke leaked
object URLs for encrypted media.

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-19 20:31:43 +00:00
7w1 fa0a3719df Support msc4466 altering profile propagation (#1117)
<!-- 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. -->

Adds support for
[MSC4466](https://github.com/matrix-org/matrix-spec-proposals/pull/4466)
to allow sending global profile updates to all rooms, rooms without
overrides, and no rooms.

Requires server support, afaik only Continuwuity has that atm. When
unsupported the option is grayed out.

All -> standard behavior
Unchanged -> default Sable behavior, should propagate global updates to
rooms without their own profile changes (handled by server)
None -> Only updates global profile, users can individually send updates
through the cosmetics menu of specific rooms if they want something to
match the global profile.

Oh, should also inadvertently fix #1096 i think

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

- [ ] 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-19 15:01:07 -05:00
Erwan Leboucher 904d27102d fix(tauri): prevent android media loading stalls and object-url leaks 2026-07-19 19:51:26 +02:00
Erwan Leboucher 23b9dfca74 fix(call): keep the mobile call embed aligned to the room during drawer slides 2026-07-19 17:36:20 +02:00
7w1 61bcf64f50 fix(tauri): isolate authenticated media caches 2026-07-18 23:12:55 -05:00
Erwan Leboucher e373dcc1e3 Merge remote-tracking branch 'origin/dev' into feat/tauri-desktop
# Conflicts:
#	src/app/features/room/RoomView.tsx
#	src/app/pages/client/sidebar/UserMenuTab.tsx
2026-07-19 01:06:27 +02:00
Erwan Leboucher 47b3ea2512 fix(sync): debounce connection-lost banner instead of ineffective resume retry 2026-07-19 01:06:27 +02:00
Erwan Leboucher bce679b6af fix(sync): reconnect immediately on mobile app resume 2026-07-19 01:06:27 +02:00
7w1 f00176dcb1 support msc4466 profile propagation 2026-07-18 14:38:45 -05:00
7w1 ea9883366a Add rainbowme command (#1109)
<!-- 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. -->

Adds /rainbowme. Self explanatory

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

- [ ] 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-18 14:20:18 -05:00
7w1 0d5613a980 Fix/sliding sync avatars packs (#1112)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description
Fixes three sliding sync regressions:

- Space icons stayed blank on first load: avatar state arrives after the
sidebar renders and nothing re-rendered on it. Space tabs now use the
reactive `useRoomAvatar` hook.
- Bridged users had no timeline avatars: ghosts have no `/profile`
fallback and their `m.room.member` event isn't in the lazy sync window.
The timeline now hydrates missing members on demand, with a 5 min
negative cache for failed fetches.
- Packs hosted on space rooms didn't load: the space subscription key
won over the image-pack one and doesn't request pack state. Added a
`space_image_packs` composite key, and pack rooms are subscribed at
client load instead of on first emoji board open.

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
- [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-18 17:49:43 +00:00
Erwan Leboucher a0cfefcd19 fix: render typing indicator in-flow and stop scroll snapping to bottom 2026-07-18 16:03:22 +02:00
Erwan Leboucher 3a8bd64d1a format 2026-07-18 13:40:36 +02:00
Erwan Leboucher 1fe606eaaa Merge origin/dev into feat/tauri-desktop 2026-07-18 13:36:55 +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 35a9396ff9 perf(room): navigate to rooms in a transition to keep the UI responsive 2026-07-18 11:42:59 +02:00
Erwan Leboucher b8b9dd818c fix: sticker packs hosted on space rooms missing with sliding sync 2026-07-18 10:46:10 +02:00
Erwan Leboucher 1e1b2fca30 fix: missing avatars for bridged users in timeline with sliding sync 2026-07-18 10:45:23 +02:00
Erwan Leboucher b2a02d57ca fix: space icons not appearing on first load with sliding sync 2026-07-18 10:40:04 +02:00
7w1 065630e386 fix various member state with sliding sync and fix test 2026-07-18 00:37:18 -05:00
7w1 0e1adfd33c fix: improve timeline reliablity to follow new message (#1105)
<!-- 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. -->

Fix the timeline not reliably following new messages when pinned to the
bottom, and stop the browser's scroll anchoring from fighting the
virtualized message list.

#### 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-18 03:55:21 +00:00
7w1 e1e22274d9 add rainbowme command 2026-07-17 22:34:55 -05:00
7w1 995435bca0 fix profile data not syncing on mobile 2026-07-17 11:53:23 -05: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 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 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 01587d9cad Merge branch 'dev' into sliding-sync-stablization 2026-07-16 16:30:37 -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 7c29062403 Merge remote-tracking branch 'origin/dev' into sliding-sync-stablization 2026-07-16 13:38:46 -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 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 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 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 d098e77130 show room members in dev tools 2026-07-15 14:33:08 -05:00
7w1 0f8ce00b6b loader for rooms 2026-07-14 16:05:06 -05:00
7w1 9fbd2e5c6c some clean up 2026-07-14 15:52:30 -05:00
Erwan Leboucher a4cdd156c9 Add Native OIDC (OAuth 2.0) login 2026-07-14 22:14:45 +02:00
7w1 25a3c21de1 Merge branch 'dev' into sliding-sync-stablization 2026-07-14 12:32:28 -05:00
7w1 b64cb8b333 fix sync when open room, and clean up sync sizes and data, other stuff i forgot 2026-07-13 23:30:05 -05:00