Commit Graph
415 Commits
Author SHA1 Message Date
Erwan Leboucher 3e3ae9a59f fix(members): refill the member roster when sliding sync only lazy-loaded it 2026-08-02 22:27:20 +02:00
Erwan Leboucher 6d61d9b77c refactor: replace hardcoded Matrix event type strings with SDK constants 2026-08-01 16:20:36 +02:00
Erwan Leboucher 821f7822eb fix(sync): settle room subscription loading when the server sends no room data 2026-07-31 15:27:08 -05:00
Erwan Leboucher 3836bfe9d0 fix(sliding-sync): keep an accepted invite joined when the server replays stale invite state 2026-07-31 15:27:08 -05:00
Erwan Leboucher eee1198700 fix(sliding-sync): refresh stale room member display names when global profile differs 2026-07-31 15:27:07 -05:00
Erwan Leboucher 1b89b92915 fix(mobile): recover sync after resume 2026-07-30 09:57:53 +02:00
Erwan Leboucher b6e1d4aed3 fix(sync): preserve inactive room timelines 2026-07-29 12:12:13 +02:00
7w1 2b78d0bc3a test: scope timeline helper consistently 2026-07-28 21:53:27 -05:00
Erwan Leboucher 03277c0bd6 fix: prune inactive room timelines 2026-07-28 21:41:48 -05:00
Erwan Leboucher 5f4fcb0ea5 fix: recover recent room history 2026-07-28 23:13:50 +02:00
Erwan Leboucher cc2d8b1bfb fix: recover media auth after token refresh 2026-07-28 14:16:41 +02:00
7w1 d11d5618f3 fix(sync): recover faster from network switches and flaky connections (#1399)
<!-- 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
- [ ] 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-27 20:01:26 +00:00
Erwan Leboucher d5492982a1 fix(crypto): reset per-account crypto state when switching accounts 2026-07-27 08:25:26 +02:00
Erwan Leboucher 7664a94d79 fix(sync): recover faster from network switches and flaky connections 2026-07-26 22:49:45 +02: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
Erwan Leboucher 90115b5705 refactor: remove unused exports flagged by fallow 2026-07-25 21:05:33 -05:00
7w1 41346eb6b5 fix(sliding-sync): drop stale invite state for joined rooms in sidebar cache (#1284)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

On homeservers that keep sending invite_state for a room the user has
already joined (e.g. Continuwuity), accepting a local invite left the
room "half-joined": after a restart it reappeared as a pending invite.
The sidebar cache persisted the stale invite_state, and matrix-js-sdk
treats invite_state as authoritative (it short-circuits to invite
membership and ignores required_state), so hydration kept resurrecting
the invite.

Fixes #1283

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

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

code review and autocomplete
2026-07-24 15:57:31 +00:00
Erwan Leboucher 879c481e37 fix(sliding-sync): drop stale invite state for joined rooms in sidebar cache 2026-07-24 17:18:27 +02:00
Erwan Leboucher 87d7a8945d fix(sentry): scrub homeserver host from Sentry data
Redact external http(s) origins (homeserver, OIDC issuers, media
redirectors) to [HOMESERVER] before sending to Sentry. Preserve the
app's own origin and local dev hosts. Also drop the sync.base_url span
attribute and the baseUrl debug-log field that leaked the homeserver
explicitly.
2026-07-24 10:52:18 +02:00
7w1 d01dd31474 perf: defer sidebar cache work to idle time 2026-07-23 16:42:38 -05:00
Erwan Leboucher 302e9d671d fix: stop wiping unread counts for spaces and unchanged rooms in incremental recompute 2026-07-23 21:24:27 +02: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 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 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
Erwan Leboucher a9fb56e7d0 fix: strip credentials from token-refresher tempClient to prevent logout cascade 2026-07-23 10:39:30 +02: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
Erwan Leboucher 7c66892f30 fix(media): recover authenticated video sessions 2026-07-22 18:05:21 +02:00
7w1 b16f0d7de5 style: unify startup popup banners 2026-07-21 23:09:09 -05:00
7w1 0a71d9c23d style: revamp connection status popups 2026-07-21 22:52:42 -05:00
7w1 59b5e87cf5 cleanup 2026-07-21 18:23:53 -05:00
Erwan Leboucher b7d40aeb03 chore: update matrix-js-sdk with the new oauth api 2026-07-21 23:47:37 +02:00
7w1 e7827d3054 fix: lint 2026-07-21 15:32:28 -05:00
7w1 963e73df41 perf(timeline): load identity data on demand 2026-07-21 15:11:50 -05:00
7w1 7e8c79ddcd fix: various small performance and visual improvements (#1173)
<!-- 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 #1172 

#### 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-21 00:31:00 -05:00
7w1 3becee0ded fix again (please wokr this time) 2026-07-21 00:12:00 -05:00
7w1 931968f89d fix: sync call status 2026-07-20 23:43:50 -05:00
7w1 e093b58538 fix: ensure more locations are updated with sliding sync 2026-07-20 18:22:08 -05:00
7w1 9b4548c459 fix needing to leave a room twice 2026-07-19 22:41:49 -05:00
7w1 a76acdf819 fix: populate versions cache and refresh thread support 2026-07-19 16:40:16 -05:00
Erwan Leboucher ef10ad4243 feat(tauri): show a themed window at first paint with a show() failsafe 2026-07-19 21:07:25 +02:00
Erwan Leboucher 1f33d97289 perf: cache server /versions to skip a blocking fetch on startup 2026-07-19 20:13:12 +02:00
mortebrume fcc66673ab fix: uniformise usage of fetchFn for matrix-sdk 2026-07-19 14:07:45 +02:00
Andrew Attali 408f466913 Merge upstream dev into feat/tauri-desktop 2026-07-19 01:06: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 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