Commit Graph
3844 Commits
Author SHA1 Message Date
7w1 6627b92f0a Update useAuthMetadata.test.ts 2026-07-23 14:12:57 -05:00
7w1 d487ca7947 fix: non-oidc sessions using oidc device management 2026-07-23 14:09:06 -05:00
7w1 c8ad4d1555 feat: improve input attachement modal (#1234)
<!-- 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. -->
add a more native looking attachement modal
<img width="1080" height="2220" alt="1000000082"
src="https://github.com/user-attachments/assets/e94b1c1c-bced-4e14-91a4-d278adf1ccdc"
/>

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

- [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-23 18:17:33 +00:00
7w1 7beb2da029 fix: media 401, slow-internet loading, and native streaming decryption (#1246)
<!-- 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. -->

#### Media 401 on authenticated media (MSC3916)
useMediaAuthentication returned false while /versions was unresolved, so
the app built unauthenticated URLs that 401 on MSC3916-strict
homeservers during first render. Now fails closed (true until versions
loads). SW skips session-recovery retry on genuine M_UNKNOWN_TOKEN 401s
to avoid loops.

#### Slow / flaky-internet loading
- Fetch timeout 30s → 120s (Rust + TS).
- One retry on 5xx or network error after 1.5s backoff; no retry on
AbortError.
- Missing media session returns 503 + Retry-After instead of 401.
- Explicit redirect::Policy::default() — strips Authorization on
cross-origin MSC3916 redirects to signed CDNs.

#### Native streaming decryption (Tauri)
Encrypted media was fully buffered/decrypted in JS with no Range or disk
cache. New set_media_encryption command passes AES-CTR key/IV/SHA-256 to
Rust, which decrypts in place (Ctr64BE/Ctr128BE per version), verifies
ciphertext SHA-256, and serves plaintext — encrypted media now streams
and caches like unencrypted. Added aes + ctr crates,
tauriMediaEncryption.ts helper, and routed
Audio/Video/Image/ThumbnailContent through the native path.

#### 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-23 17:36:09 +00:00
7w1 d05aef88fa fix: re-assert join after sliding sync reverts optimistic join to invite (#1251)
<!-- 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:

- [ ] 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 17:35:00 +00:00
7w1 c83fb18196 fix: clean up window pointer listeners on pointercancel and unmount (#1252)
<!-- 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 #1250

#### 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-23 17:27:02 +00:00
7w1 7cd512d414 fix: add pointercancel to cleanup 2026-07-23 12:23:31 -05:00
7w1 e884f4568e fix: show mention count instead of total unread in page title (#1245)
<!-- 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 16:55:59 +00:00
7w1 2ffe1e4cf4 perf: narrow sync-settled unread recompute to dirty rooms only (#1253)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

PushProcessor: Use mx.pushProcessor instead of new PushProcessor(mx) in
five places. The unread fallback path allocated one per room per sync
cycle.
Dirty rooms: Recompute unread only for rooms that received data in the
sync response instead of all joined rooms.

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

- [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-23 16:54:21 +00:00
7w1 1502b4dc80 formatting 2026-07-23 11:47:08 -05:00
7w1 7dfa6118ba fix: include receipts/account data in dirty rooms 2026-07-23 11:44:34 -05:00
Erwan Leboucher 8fe2816707 perf: narrow sync-settled unread recompute to dirty rooms only
The sync-settled callback in useBindRoomToUnreadAtom called getUnreadInfos
on ALL joined rooms every sync cycle (O(rooms × timeline × push_rules)).
Element Web does not do this — it relies on incremental per-room
RoomEvent.UnreadNotifications + RoomEvent.Timeline handlers.

Track room IDs that received data in the sync response (onCacheRoomData)
and pass them to the settled listener. Recompute unread only for those
dirty rooms via getUnreadInfosForRooms, issuing targeted PUT/DELETE
actions instead of a full RESET. The incremental handlers and the
isResponseProcessing guard remain, so the 'SDK counts unreliable' fallback
for rooms without read receipts is preserved.
2026-07-23 18:15:44 +02:00
Erwan Leboucher 8025a859f4 perf: reuse the SDK singleton PushProcessor instead of allocating per call
new PushProcessor(room.client) was allocated per room on every sync cycle
(in the getUnreadInfo fallback path) and per component mount in
RoomTimeline/ThreadDrawer/notifications. The SDK already exposes a cached
singleton at mx.pushProcessor (client.ts:1293). Element Web uses the same
pattern. Replace all five allocations and drop the now-unused imports.
2026-07-23 18:15:42 +02:00
Erwan Leboucher de227d2b63 fix: media 401, slow-internet loading, and native streaming decryption 2026-07-23 18:13:01 +02:00
Erwan Leboucher ee1fc3af56 fix: clean up window pointer listeners on pointercancel and unmount 2026-07-23 18:06:42 +02:00
Erwan Leboucher 02172cc998 fix: stop leaking session_started/session_ended listeners per room
useCallSession subscribed to mx.matrixRTC.on('session_started'/'session_ended')
once per call, and is used by RoomNavItem (one per visible room). With 11+
visible rooms this exceeded Node's default EventEmitter limit of 10 and
stacked O(N) listeners that each did O(1) filtering per event.

Move the subscription into a single MatrixRTCSessionProvider that exposes
active RTC session room IDs via React context. useCallSession now reads
from that context instead of subscribing per-room.
2026-07-23 17:51:38 +02:00
Erwan Leboucher 6f73ae1f6a fix: re-assert join after sliding sync reverts optimistic join to invite
After joinRoom succeeds, the server's sliding-sync proxy can keep a room
in the is_invite list for 1+ cycles, sending invite_state that the SDK
injects as m.room.member with membership=invite. room.recalculate() then
reverts selfMembership back to invite, moving the room back into the
invite list and suppressing notifications (getUnreadInfos gates on
getMyMembership !== join).

Track optimistically joined rooms, subscribe them so real joined state
flows in, and re-assert Join after each sync Complete until the server
catches up.
2026-07-23 17:51:18 +02:00
Shea fc2ef703da fix maps
Signed-off-by: Shea <[email protected]>
2026-07-23 17:47:25 +03:00
Erwan Leboucher 6fc50a3755 fix: show mention count instead of total unread in page title 2026-07-23 13:34:22 +02:00
Erwan Leboucher 6e7e1e4c2a feat: improve input attachement modal 2026-07-23 11:55:18 +02:00
haz 62195fc58a feat: make native title bar a toggle (#1188)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Adds a desktop setting to switch between Sable’s custom title bar and
native window decorations.
- Persists the selected title bar mode.
- Applies it at startup and while running.
- Keeps connection status in the correct location.
- Fixes black gaps when resizing the Linux CEF window.

#### 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-23 09:50:49 +00:00
haz 8f80df0b8f fix(mobile-drawer): fix first tap on mobile navigation (#1237)
<!-- 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:

- [ ] 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 09:50:37 +00:00
Erwan Leboucher 922ddb7bad fix(mobile-drawer): fix first tap on mobile navigation 2026-07-23 11:34:35 +02:00
Erwan Leboucher 58ee2d13a0 fix(cef): resize webview with window 2026-07-23 11:27:04 +02:00
Erwan Leboucher a9fb56e7d0 fix: strip credentials from token-refresher tempClient to prevent logout cascade 2026-07-23 10:39:30 +02:00
Erwan Leboucher bc1db07f42 test: assert OIDC token exchange uses the registered redirect URI 2026-07-23 09:02:38 +02:00
Erwan Leboucher af6fa7888c fix: repair title bar toggle checks 2026-07-23 08:36:22 +02:00
Erwan Leboucher 84832d7420 feat: make native title bar a toggle 2026-07-23 08:36:22 +02:00
Erwan Leboucher 22c0ba474d fix: guard getAppPathFromHref against Tauri synthetic origin mismatch 2026-07-23 08:32:51 +02:00
7w1 69820c8499 ensure oauth context on refresh 2026-07-22 22:03:01 -05:00
7w1 04acab0d78 formatting 2026-07-22 20:42:17 -05:00
7w1 955336aa39 perf(mobile): swiping performance improvements 2026-07-22 20:38:55 -05:00
7w1 f40bf8cece perf(mobile): restore concurrent room nav and drawer animations 2026-07-22 20:33:36 -05:00
7w1 c03d7f0ed7 Clean up the design of Persona settings (#1223)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Match design of Personas settings page with other non-experimental
pages, separate options into `SequenceCard`s, turn the Persona overview
into a list with subpages for editing each Persona.

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-23 00:32:10 +00:00
7w1 927f10cda3 fix: fix token refresh (#1228)
<!-- 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-23 00:23:31 +00:00
7w1 c102fde6c7 formatting 2026-07-22 19:20:38 -05:00
Erwan Leboucher 81a7cf15c1 fix: fix token refresh 2026-07-22 23:47:46 +02:00
7w1 cfa29dc054 fix(mobile-drawer): fix double tap on room switch (#1175)
<!-- 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-22 21:35:56 +00:00
7w1 90926c7555 formatting 2026-07-22 16:22:20 -05:00
7w1 d5ad3d24f8 style: strengthen connection status glass effect 2026-07-22 16:17:55 -05:00
Josie 80d89c2aae Clean up the design of Persona settings 2026-07-22 20:23:56 +01:00
7w1 8421e07557 harden mobile tauri checks 2026-07-22 14:01:54 -05:00
7w1 b2fa404cf6 default to 1 pronoun pill on mobile 2026-07-22 13:57:05 -05:00
7w1 d8d32ca79d style: make bottom sheet extend off screen 2026-07-22 13:48:46 -05:00
7w1 440fd24c79 fix(style): ensure popups respect mobile safe area 2026-07-22 13:43:09 -05:00
7w1 c590956c9c fix desktop windows title bar status 2026-07-22 13:21:53 -05:00
7w1 d6a5411986 fix sso deeplinking behaviors (#1214)
hopefully

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

Some path normalizationing

#### 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-22 11:53:22 -05:00
7w1 bc526c83fe formatting 2026-07-22 11:50:51 -05:00
7w1 6ff9c02c39 harden parsing 2026-07-22 11:49:57 -05:00
7w1 bfd5730661 fix sso deeplinking behaviors
hopefully
2026-07-22 11:46:56 -05:00