Commit Graph
400 Commits
Author SHA1 Message Date
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
7w1 1acd39eedb fix: wait for room list to be loaded before fetching pack info (#1119)
<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

Fixes a regression in #1112 where every subspace of a space with an
emoji pack was shown separately in the server list with sliding sync. We
now wait until the room list is loaded before fetching an emoji pack.

#### 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-18 22:48:08 +00:00
Andrew Attali c989d54637 fix: wait for room list to be loaded before fetching pack info 2026-07-19 00:36:09 +02:00
7w1 69713890a2 cache power levels, widgets, abbreviations, and banners 2026-07-18 15:16:09 -05:00
7w1 bfae312203 remove unused function 2026-07-18 12:47:03 -05:00
Erwan Leboucher 0208d8a2cb fix(android): fix plugin build.rs API and route remaining fetch through Tauri HTTP 2026-07-18 14:30:27 +02:00
Erwan Leboucher 1fe606eaaa Merge origin/dev into feat/tauri-desktop 2026-07-18 13:36:55 +02:00
Erwan Leboucher aedfa7a40c Merge branch 'dev' into feat/tauri-desktop
# Conflicts:
#	src/app/pages/client/ClientNonUIFeatures.tsx
#	src/app/utils/presence.ts
#	src/client/presenceSync.ts
2026-07-18 12:25:54 +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
7w1 065630e386 fix various member state with sliding sync and fix test 2026-07-18 00:37:18 -05:00
Erwan Leboucher 5670c9ef3f fix(tauri): use getAppOrigin() for all origin-dependent paths 2026-07-17 18:18:50 +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 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