Commit Graph
2145 Commits
Author SHA1 Message Date
7w1 84e52ad519 Merge pull request #343 from SableClient/fix/thread-classic-sync
fix(threads): thread drawer empty with classic sync
2026-03-19 03:37:58 +00:00
7w1 53a652b47a Merge pull request #347 from SableClient/fix/thread-indicator
fix: hide ThreadIndicator badge inside ThreadDrawer compose box
2026-03-18 18:04:58 +00:00
7w1 9c736203ad Update ImageContent.tsx 2026-03-18 12:56:52 -05:00
7w1 476ec6ffe1 Merge pull request #355 from SableClient/fix-mention-highlight-toggle
Add toggle for mention highlighting
2026-03-17 22:03:26 -05:00
7w1 75f84f90d1 Merge pull request #354 from SableClient/fix/hide-presence-member-list
Hide presence badge in members list for unsupported users
2026-03-17 22:01:56 -05:00
7w1 3043f77d85 add toggle for mention highlighting 2026-03-17 21:58:31 -05:00
7w1 4eef3cefef Hide presence badge in members list for users without homeserver support, mimicking room profile apperance. 2026-03-17 21:36:48 -05:00
7w1 dcfafa4f5e Update Message.tsx 2026-03-17 21:28:22 -05:00
7w1 c851eb4e11 cache things 2026-03-17 21:23:18 -05:00
7w1 0f14e675ba pronoun pills for all 2026-03-17 21:15:38 -05:00
Evie Gauthier 3f26cd9515 fix: hide ThreadIndicator badge inside ThreadDrawer compose box
Inside the ThreadDrawer the user is already in thread context, so showing
the "Thread" badge in the reply chip is redundant and visually noisy.

The compose box always sets replyDraft.relation.rel_type = RelationType.Thread
when threadRootId is set (so the message goes to the right thread), but that
should not make the ThreadIndicator visible there.

Add !threadRootId guard to the ThreadIndicator render condition.

Adds 4 unit tests covering the four branches of the condition.
2026-03-17 17:56:24 -04:00
7w1 f94d400584 add tab 2026-03-17 16:11:11 -05:00
Evie Gauthier 0fb883bfaa test(autocomplete): add tests for data-selected stamping and keyboard navigation
Covers the two bugs fixed in the previous commit:

- Verifies the first button gets data-selected="true" on initial render so the
  CSS highlight rule fires immediately (regression for the dep-array fix).
- Verifies the first button is also stamped when async search results load new
  buttons after the initial render (the original regression).
- Verifies keyboard navigation via the AUTOCOMPLETE_NAVIGATE_EVENT moves the
  selected index and that it clamps at the list boundaries.

Also adds an eslint-disable comment in AutocompleteMenu.tsx explaining why
the no-dep-array useLayoutEffect is intentional (setSelectedIndex is a stable
React setter; the conditional call cannot cause an infinite loop).
2026-03-17 16:38:39 -04:00
Evie Gauthier 86bdb80816 refactor+test(threads): extract getThreadReplyEvents and add unit tests
Extract the replyEvents IIFE into a module-level function so the fix-first-
then-check-length logic can be exercised in isolated unit tests without
mounting the full component.

Tests cover:
- Returns thread.events (minus root) when the Thread object has replies.
- Excludes reactions (RelationType.Annotation) from the results.
- Classic-sync regression: thread.events = [rootEvent] => falls back to the
  live room timeline (the bug was that length-1 thread blocked the fallback).
- Falls back to live timeline when getThread() returns null.
- Filters out events belonging to a different thread.
- Returns [] when neither source has relevant events.
2026-03-17 16:17:47 -04:00
Evie Gauthier 2a63f596fe fix(threads): thread drawer empty with classic sync
With classic sync, RoomViewHeader creates Thread objects via
room.createThread(id, rootEvent, [], false) — passing no initialEvents.
This means thread.events starts as just [rootEvent] (or empty).

Two bugs resulted:

1. The gate `if (fromThread.length > 0)` blocked the live-timeline fallback.
   Since thread.events = [rootEvent], length was 1 (truthy), but after
   filtering the root out the array was empty — yielding zero replies even
   though the events were present in the main room timeline.
   Fix: compute the filtered array first, then gate on its length so the
   fallback is reached when the thread object has no actual replies yet.

2. Even after #1, subsequent renders and read-receipt logic used thread.events
   (empty) rather than the live timeline.
   Fix: add a mount-time useEffect that backfills matching events from the
   unfiltered live timeline into the Thread object via thread.addEvents() so
   the authoritative source is populated for future interactions.
2026-03-17 16:17:47 -04:00
Evie Gauthier e033e36a1e fix(autocomplete): Enter always selects first item; first item not highlighted
Two related bugs in the mention/room/emoji autocomplete:

1. Enter key always inserted the first suggestion instead of the highlighted one.
   Cause: querySelector('[data-selected]') matched ALL buttons since every button
   has the attribute set to either 'true' or 'false'. The first button in DOM
   order was always returned.
   Fix: use '[data-selected="true"]' to select only the active item.

2. The first item had no visual highlight on initial open (the CSS rule requires
   data-selected='true', but the useLayoutEffect responsible for stamping that
   attribute only re-ran when selectedIndex changed -- not when buttons first
   appeared after async search results loaded).
   Fix: remove the dep array so the effect runs after every render; newly-loaded
   buttons are stamped immediately.
2026-03-17 16:17:32 -04:00
Rose ab138a11b5 Merge pull request #311 from SableClient/fix/better-ux-voice-messages
fix: better ux voice messages
2026-03-17 18:17:18 +00:00
hazre 35e842f768 fix: simplify mobile stuff 2026-03-17 18:54:18 +01:00
hazre 8f5b2e32f8 fix: waveform algorithm 2026-03-17 18:54:18 +01:00
hazre f81fdd38af chore: merge dev into nyxsutsn 2026-03-17 18:54:18 +01:00
hazre 4ed7f65399 fix: prevent first waveform bar from being lit when audio not playing 2026-03-17 18:54:17 +01:00
7w1 9fa328dd12 Merge pull request #338 from SableClient/fix-image-render
Fix images not rendering when dimensions aren't present
2026-03-17 12:45:55 -05:00
7w1 2a1e4105ac fix images not rendering 2026-03-17 12:41:43 -05:00
7w1 1a9f41805a Update MsgTypeRenderers.tsx 2026-03-17 12:09:28 -05:00
7w1 2a42941e4b fix enter & empty messages 2026-03-17 11:44:02 -05: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