Commit Graph
2121 Commits
Author SHA1 Message Date
Evie Gauthier b98fa45820 feat: auto-unsubscribe and prune timeline when local user leaves a room
Wire onMembershipLeave to RoomMemberEvent.Membership in attach()/dispose().
When the local user leaves or is banned from a subscribed room, calls
unsubscribeFromRoom() which prunes timelines exceeding PRUNE_TIMELINE_THRESHOLD.

Previously, unsubscribeFromRoom() was dead code — nothing in the app called it.

Also add 5 unit tests covering: leave, ban, other-user leave, join (no-op),
and non-subscribed room (no-op).
2026-03-18 15:22:56 -04:00
Evie Gauthier 0f6067e04c refactor: remove adaptive timeline limits, stop unsubscribing on navigation
Replace the adaptive 50/100/150 timeline limit system with a flat
ACTIVE_ROOM_TIMELINE_LIMIT=50, matching Element Web approach.
Stop calling unsubscribeFromRoom() on room navigation so subscriptions
accumulate across the session for instant room switching.

Element Web SlidingSyncManager.setRoomVisible() never removes subscriptions
at all -- no pruning whatsoever. Our PRUNE_TIMELINE_THRESHOLD=100 guard
is more conservative than their approach.

- Remove AdaptiveSignals type, readAdaptiveSignals(),
  resolveAdaptiveRoomTimelineLimit(), applyRoomTimelineLimit()
- Remove adaptiveTimeline and configuredTimelineLimit class fields
- Remove adaptiveTimeline from SlidingSyncDiagnostics type and UI
- Stop unsubscribing on nav in useSlidingSyncActiveRoom
- Lower PRUNE_TIMELINE_THRESHOLD from 150 to 100
2026-03-18 14:31:18 -04:00
Evie Gauthier 023bf2a325 feat: persist room timeline to IndexedDB before pruning from memory 2026-03-17 18:22:14 -04:00
Evie Gauthier 67c626c6b2 fix: correct IndexedDB persistence claim in pruneRoomTimeline comment 2026-03-17 18:11:03 -04:00
Evie Gauthier 1df87084a0 fix: stop sliding sync on dispose and prune inactive room timelines
Two memory management issues fixed:

1. SlidingSyncManager.dispose() now calls this.slidingSync.stop() before
   removing listeners. Without this the SDK's internal Promise loop keeps
   polling the sliding sync proxy even after the client is disposed, leaking
   network connections and preventing garbage collection.

2. pruneRoomTimeline() is called from unsubscribeFromRoom(). When a room
   leaves the active subscription its EventTimeline chain can hold hundreds of
   events in memory. Once the event count exceeds PRUNE_TIMELINE_THRESHOLD
   (= ACTIVE_ROOM_TIMELINE_LIMIT_HIGH = 150) the live timeline is reset via
   EventTimelineSet.resetLiveTimeline(). The full history remains on disk in
   IndexedDBStore and is re-fetched via the active-room subscription on next
   open, so there is no user-visible change.

Adds 5 unit tests: 1 for dispose, 4 for the pruning threshold boundary.
2026-03-17 17:57:04 -04:00
Rose 9ed985a2a8 Merge pull request #328 from DidiDidi129/dev
Fix macOS name in the devices tab from 'Mac OS' to 'macOS'
2026-03-17 15:06:25 +00:00
Evie Gauthier f624c8d36b feat(sentry): make consent banner non-dismissable 2026-03-17 09:34:28 -04:00
Evie Gauthier 9e9218bb00 feat(sentry): switch crash reporting from opt-out to opt-in 2026-03-17 09:03:12 -04:00
Didi 1b243b24ac Make Mac OS, macOS in user-agent 2026-03-17 18:26:03 +10:30
Didi 3f51f7a72d Revert Broken Changes 2026-03-17 17:58:28 +10:30
Didi ca3b1602b0 Fix OS name check from 'Mac OS' to 'macOS' 2026-03-17 16:36:35 +10:30
7w1 a6b62926cf Merge pull request #325 from SableClient/fix-colors-and-threads
Fix colors and threads and things
2026-03-17 00:03:05 -05:00
7w1 add946378a fix replies new lines 2026-03-16 23:57:45 -05:00
7w1 d222dc2892 i didn't test this :p 2026-03-16 23:53:42 -05:00
Jason Beetham 689381f01e Remove pip video setting 2026-03-16 22:47:23 -06:00
7w1 31850dc9dc fix thread fallback 2026-03-16 23:42:57 -05:00
7w1 0f10e19e85 revert my stupidity 2026-03-16 23:34:53 -05:00
7w1 e81d24e0ea fix colors and threads 2026-03-16 23:32:00 -05:00
7w1 141fab7292 swap settings menu order 2026-03-16 22:27:44 -05:00
Evie Gauthier f226a422e8 Merge pull request #280 from SableClient/feat/sentry-pr
feat(sentry): error tracking, performance monitoring, and session replay
2026-03-17 03:04:48 +00:00
Evie Gauthier 2ee72702e6 Merge pull request #314 from SableClient/fix/matrix-to-custom-base
fix: support custom matrix.to base URL via config
2026-03-17 03:04:28 +00:00
Evie Gauthier 4714518514 test(sentry): unit tests for scrubbers and TelemetryConsentBanner
- Extract scrubMatrixIds/scrubDataObject/scrubMatrixUrl from instrument.ts
  into src/app/utils/sentryScrubbers.ts so they can be tested independently
- Add 43 unit tests covering token redaction, Matrix entity ID scrubbing,
  URL path scrubbing (API + app routes + percent-encoded deep-links),
  and scrubDataObject recursive traversal
- Add 12 RTL integration tests for TelemetryConsentBanner: visibility
  gating (no DSN, pre-existing pref), Got it, dismiss, and Opt out flows
2026-03-16 22:44:37 -04:00
Evie Gauthier 57eedcbf60 chore: resolve merge conflicts with dev; document telemetry consent banner 2026-03-16 22:27:17 -04:00
Evie Gauthier f65f12687a test(matrix-to): add RTL integration tests for config→matrix-to wiring 2026-03-16 22:19:23 -04:00
Evie Gauthier 55fd9bbc7e style(matrix-to): fix prettier formatting in test file 2026-03-16 21:51:39 -04:00
Evie Gauthier edc1c67ecf test(matrix-to): add unit tests; fix setMatrixToBase reset, http support, room regex 2026-03-16 21:43:51 -04:00
7w1 687d6721ce Merge pull request #127 from melogale/dev
Bring in sable-call!
2026-03-17 01:33:17 +00:00
Evie Gauthier 121334b5e1 fix: keep formatted_body links as standard matrix.to for interop
Outgoing links embedded in Matrix events (mention HTML, reply quotes)
must use https://matrix.to so other clients (Element, FluffyChat, etc.)
can parse them as Matrix permalinks. Custom base applies only to UI
navigation links (copy-to-clipboard buttons).
2026-03-16 21:26:18 -04:00
melogale b224d936c4 final fix 2026-03-16 21:18:37 -04:00
Evie Gauthier 2da742d716 fix: dynamic matrix.to regexes; route mentions through plugin generators (#67)
- matrix-to.ts: replace static hardcoded regexes with a lazily-built
  cached set that matches both https://matrix.to (cross-client compat)
  and the configured custom base URL (if matrixToBaseUrl is set in
  config.json)
- editor/output.ts: Mention block now calls getMatrixToRoom /
  getMatrixToRoomEvent instead of hardcoding the matrix.to base
- room.ts: parseReplyFormattedBody uses getMatrixToRoomEvent /
  getMatrixToRoom for the same reason
2026-03-16 21:17:19 -04:00
Evie Gauthier 62925c8d7e Merge pull request #310 from SableClient/fix/quick-issues-batch-1
fix: Quick issues batch 1 — UI/UX polish
2026-03-17 01:10:31 +00:00
Evie Gauthier 097e12d3a4 fix: correct remaining VIDEO_VOLUME_KEY reference and add useEffect import 2026-03-16 21:03:30 -04:00
Evie Gauthier b584d1867b fix: support matrixToBaseUrl config to override matrix.to base (#67) 2026-03-16 20:51:51 -04:00
Evie Gauthier 1a4af27d49 fix: persist volume for audio+video; split changesets; revert matrix.to (#120) 2026-03-16 20:51:22 -04:00
Evie Gauthier d7ede9532c fix: resolve lint/format errors in autocomplete virtual selection 2026-03-16 20:30:30 -04:00
Evie Gauthier b6db65c33b fix: virtual autocomplete selection — typing preserved, arrow keys navigate 2026-03-16 20:14:46 -04:00
Evie Gauthier c7063690f0 fix: focus first autocomplete item on menu open 2026-03-16 19:52:20 -04:00
melogale 3e42d3bf70 Merge remote-tracking branch 'upstream/dev' into dev 2026-03-16 19:49:03 -04:00
melogale abf0848aa6 fix delayed events 2026-03-16 19:23:46 -04:00
Evie Gauthier e252a1242b fix: highlight first autocomplete item to indicate Enter selection 2026-03-16 17:29:49 -04:00
Evie Gauthier ec5e9812aa fix: quick issues batch 1 (#2 #44 #45 #52 #66 #67 #69 #79 #35 #103 #120 #168) 2026-03-16 17:16:04 -04:00
Rose 5b1245c4ee Merge branch 'dev' into sonarqube/maintainability-2026-03-14 2026-03-16 21:42:24 +01:00
7w1 2e94050719 add toggle to show call button for large rooms 2026-03-16 15:21:58 -05:00
7w1 4badb3785e Merge pull request #307 from SableClient/fix/animated-avatars
Make animated svgs loop
2026-03-16 20:01:42 +00:00
7w1 84ce6d7572 there had to have been a better way to do this 2026-03-16 14:59:36 -05:00
Evie Gauthier 888ab90fe7 Merge pull request #301 from SableClient/fix/url-preview-scroll-arrows
fix(url-preview): show scroll arrows only when content overflows
2026-03-16 19:54:54 +00:00
Evie Gauthier cb7934f50a Merge pull request #306 from SableClient/fix/notification-dot-alignment
fix(sidebar): center notification dot on avatar corner
2026-03-16 19:44:33 +00:00
Evie Gauthier bfefbf3c75 Merge pull request #305 from SableClient/fix/call-camera-default
fix(call): respect saved camera/mic preferences when starting call from room header
2026-03-16 19:43:03 +00:00
Evie Gauthier 7257255793 Merge pull request #303 from SableClient/fix/emoji-display-name-color
fix(timeline): prevent emoji color bleed in read receipt display names
2026-03-16 19:40:09 +00:00
Evie Gauthier 135dbe922f Merge pull request #302 from SableClient/fix/thread-empty-space
fix(thread): reduce excessive whitespace between root message and replies
2026-03-16 19:39:37 +00:00