Commit Graph
431 Commits
Author SHA1 Message Date
Erwan Leboucher 6097f81592 feat(call): add native calls 2026-08-13 08:25:37 +02:00
Erwan Leboucher df43bd61a2 fix(timeline): keep event jumps stable across sync gaps 2026-08-12 08:04:51 +02:00
7w1 1c50695690 chore: format sidebar cache 2026-08-08 23:20:32 -05:00
7w1 91462a9596 fix: expand cache, load from all rooms, ui changes, cleanup stuff 2026-08-08 23:20:32 -05:00
Erwan Leboucher df6123501e feat(notifications): show inbox badge on the sidebar icon 2026-08-08 23:20:32 -05:00
Erwan Leboucher 73f84c13f9 feat(notifications): build the inbox from locally evaluated push rules 2026-08-08 23:20:31 -05:00
7w1 6c5eb3ae92 formatting 2026-08-08 22:09:40 -05:00
7w1 d50437efb0 fix: scope request timeout to sends specifically 2026-08-08 22:08:05 -05:00
Erwan Leboucher 5e8401cc76 fix(client): bound matrix requests so stalled sends can be retried 2026-08-08 12:37:15 +02:00
Erwan Leboucher 45a91f71d6 Merge remote-tracking branch 'origin/dev' into fix/sliding-sync-room-state-and-unread
# Conflicts:
#	src/client/initMatrix.test.ts
2026-08-07 22:29:32 +02:00
Erwan Leboucher 1f9a9c8cee fix(sync): only pause background sync on mobile 2026-08-07 16:35:47 +02:00
Erwan Leboucher f8cf38c42a fix: pause sliding sync while the app is backgrounded 2026-08-07 09:19:24 +02:00
Erwan Leboucher e3871cdc6b fix(sync): keep response corrections from wedging the sync loop 2026-08-07 09:12:44 +02:00
Erwan Leboucher abe1b664d8 fix(sync): isolate sliding sync connections per client and gate on server support 2026-08-07 09:12:44 +02:00
Erwan Leboucher 272b933c30 fix(sync): keep room state and read receipts flowing under sliding sync 2026-08-07 09:12:44 +02:00
Erwan Leboucher 8cfbe0d136 fix(dm): resolve bridged DM metadata 2026-08-05 19:51:53 +02:00
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