Commit Graph
2034 Commits
Author SHA1 Message Date
Evie Gauthier 3dbfc69505 fix(thread): reduce excessive gap between root message and replies
The thread drawer had padding: S600 0 (24px top+bottom) on both the root
message box and the reply messages box, plus S200 padding on the reply count
label. This stacked up to ~84px of empty space between the root message and
the first reply, especially noticeable in newly created threads.

Fix:
- Root message box: change bottom padding S600→S200 (top kept at S400)
- Reply messages box: remove top padding (reply count label already provides
  visual separation)

Fixes #294
2026-03-16 14:55:37 -04:00
Evie Gauthier cf4c3905c8 Merge pull request #297 from SableClient/feat/testing-setup
Add Vitest testing infrastructure
2026-03-16 18:27:56 +00:00
Evie Gauthier 931c13fbfe Merge pull request #286 from dozro/fix/voice-message-mess
Fix audio codec handling and enhance voice recorder functionality
2026-03-16 18:24:16 +00:00
Evie Gauthier 85b0da3847 Merge pull request #282 from nushea/Edit-file-body
feat: edit file description
2026-03-16 18:11:57 +00:00
Evie Gauthier b2696f4f31 test: add tests for regex, mimeTypes, pronouns, useDebounce, useThrottle 2026-03-16 13:46:44 -04:00
Evie Gauthier bfe766ead9 test: add unit and integration tests for utils and hooks 2026-03-16 13:34:02 -04:00
Evie Gauthier 2ac73d0aa9 feat(testing): add Vitest testing infrastructure with example tests 2026-03-16 11:20:37 -04:00
Evie Gauthier 05e1d810a9 feat(push): instrument decryption relay with debugLogger for Sentry forwarding 2026-03-16 10:16:17 -04:00
Evie Gauthier fd9a1fa526 fix(push): resolve room/sender names; suppress notification when app is visible 2026-03-16 09:50:42 -04:00
Evie Gauthier a96e0e90b5 fix(push): persist session to Cache Storage so iOS SW restart survives 2026-03-16 09:29:32 -04:00
Rye 166c8f4835 fix file extension mapping 2026-03-16 14:10:56 +01:00
Evie Gauthier 293ab69a40 fix(push): resolve lint and type errors in encrypted push implementation 2026-03-16 09:08:50 -04:00
Rye 9ecfb84dd1 fixes for iOS (hopefully) 2026-03-16 14:03:05 +01:00
Evie Gauthier 597d00d59b feat(push): encrypted push notifications via event_id_only and decryption relay 2026-03-16 09:01:08 -04:00
Shea Duma 55d92c6610 making formatter happy 😄 2026-03-16 08:16:45 +02:00
Shea Duma 75c128831f overspecified the width of the texteditor to make sure it doesnt shrink for no reason 2026-03-16 07:38:14 +02:00
Shea Duma 5dd2fd72ce unstupidified spoiler pill code 2026-03-16 01:47:51 +02:00
Shea Duma 0db649b22f put the titles in the right places 😭 2026-03-16 01:36:38 +02:00
Shea Duma 4a62139026 added titles to the hover option 2026-03-16 01:33:55 +02:00
Evie Gauthier 621f402ede Merge pull request #288 from SableClient/fix/thread-fallback-reply-spec
fix: set m.in_reply_to fallback to latest thread event per spec
2026-03-15 18:58:07 +00:00
Evie Gauthier f8bb692093 chore: fix import order and add changeset 2026-03-15 14:54:46 -04:00
Evie Gauthier 0f7e6497e4 fix(direct): prevent double-badge on /direct/ icon for rooms in sidebar
The /direct/ icon badge was counting unread for all DMs, including
those already displayed as individual avatar entries in the sidebar
via DirectDMsList. This caused users to see duplicate badges — one
on the avatar entry and one on the /direct/ icon — for the same room.

Extract useSidebarDirectRoomIds hook (shared by DirectDMsList and
DirectTab) that returns the room IDs currently shown as sidebar
avatars. DirectTab now computes its badge only for DMs that overflow
beyond the MAX_SIDEBAR_DMS (3) limit shown in the sidebar.

Closes #235
2026-03-15 14:47:43 -04:00
Evie Gauthier 6a36f5dc1c fix: resolve string | undefined type error for thread event_id 2026-03-15 14:03:34 -04:00
Evie Gauthier df8e5e0cc7 style: fix prettier formatting in RoomInput 2026-03-15 13:58:13 -04:00
Rye 7926c99d2e fix: improve cleanup process and ensure correct audio codec usage in useVoiceRecorder 2026-03-15 18:49:35 +01:00
Rye b02e345b5e element compat 2026-03-15 18:40:37 +01:00
Evie Gauthier 43dba190ff fix: set m.in_reply_to fallback to latest thread event per spec 2026-03-15 13:31:29 -04:00
Rye d4ad5cad5c refactor supported codecs for improved Safari compatibility and correct file extensions 2026-03-15 18:11:02 +01:00
Rye 126894a346 improve useVoiceRecorder to improve audio codec handling and enhance waveform sample documentation 2026-03-15 15:54:38 +01:00
Rye 2bd3c37b6d enhance audio message content structure and add MSC1767 compatibility 2026-03-15 15:31:07 +01:00
Rye 6daa6150d0 fix a few js errors oops 2026-03-15 14:58:02 +01:00
Rye 215225bd28 fix audio codec choosing 2026-03-15 14:56:14 +01:00
Rye 962fef476b fix random resizing of recorder pop up by setting the width to a constant 2026-03-15 14:15:03 +01:00
Shea Duma e6589c0a0f reverted unintended changes 2026-03-15 09:23:36 +02:00
Shea Duma d5ae28e34a added file description editing 2026-03-15 09:13:48 +02:00
Evie Gauthier 76fa7f3030 fix: prevent event listener accumulation during sync retries
- Add unreadInfoRef in RoomTimeline; remove unreadInfo from useLiveEventArrive
  callback deps and LocalEchoUpdated effect deps to stop per-message listener churn
- Fix CallEmbed .bind(this) leak: bind handlers once in start(), push cleanup to
  disposables so dispose() correctly removes all listeners
- Add stable refs in useCallSignaling for mutedRoomId/ring callbacks; tighten
  effect deps to [mx, mDirects, setMutedRoomId] to prevent SessionEnded listener
  accumulation during sync retry cycles
2026-03-15 01:27:19 -04:00
Evie Gauthier 1bd5281c93 fix(timeline): stable callback ref pattern for room event listener hooks
useLiveEventArrive, useRelationUpdate, useLiveTimelineRefresh, and
useThreadUpdate each passed their callback argument into the useEffect
dependency array. This caused the listener to be removed and re-added
every time the callback identity changed (e.g. when unreadInfo toggled
or when any other parent-scope value included in the useCallback deps
changed).

Under normal conditions React's synchronous effect cleanup guarantees
one listener at a time. But during sliding-sync error/retry cycles the
client emits MaxListenersExceededWarning (11 session_ended, 51
RoomState.events) confirming that listeners accumulate. When the
callbacks change fast enough — or React defers cleanup in concurrent
mode — multiple handleTimelineEvent instances are live simultaneously.
Each one independently calls setTimeline({ range: start+1, end+1 }) for
the same arriving event, producing the spurious scroll jumps reported.

Fix: use the stable callback ref pattern in all four hooks.
- Add a ref (onArriveRef / onRelationRef / onRefreshRef / onUpdateRef)
- Assign ref.current = callback on every render (always up-to-date)
- Remove the callback from the useEffect dep array (effect runs only
  when `room` changes)
- Inside handlers, delegate via ref.current() instead of the captured
  closure value

The event listener identity is now stable for the entire lifetime of
each room mount. Listener counts stay at 1 regardless of how many
re-renders occur or how many sync error/retry cycles fire.
2026-03-15 01:27:04 -04:00
Evie Gauthier 832f597d6a fix(timeline): don't force scroll-to-bottom on sync gap when scrolled up
When a sliding-sync limited response fires RoomEvent.TimelineReset (or
the app fires RoomEvent.TimelineRefresh) the useLiveTimelineRefresh
callback was unconditionally calling setAtBottom(true) and incrementing
scrollToBottomRef, scrolling the user to the bottom even if they had
scrolled up to read history.

Three coordinated changes:

1. Add RoomEvent.TimelineReset handler to useLiveTimelineRefresh.
   The SDK emits TimelineReset on the EventTimelineSet (not the Room)
   when a limited sync response replaces the live EventTimeline. Without
   this listener the stored linkedTimelines reference the old detached
   chain; back-pagination silently no-ops, freezing the room.

2. Gate the viewport scroll on atBottomRef.current (prior position).
   Capture wasAtBottom before calling setTimeline(getInitialTimeline).
   Only call setAtBottom(true) and increment scrollToBottomRef when the
   user was already at the bottom. When scrolled up we still reinit the
   timeline (the old chain is gone) but avoid the forced scroll.

3. Add timelineJustResetRef to allow the self-heal effect to run when
   atBottom=false after a reset. The SDK fires TimelineReset before
   populating the fresh timeline, so getInitialTimeline sees range.end=0.
   Without the atBottom guard bypass the range stays at {0,0} as events
   arrive, leaving the virtual paginator rendering nothing. The ref is
   cleared on first successful heal, after which normal atBottom-gated
   behaviour resumes.
2026-03-15 01:27:04 -04:00
Shea Duma ec6f772661 improved video loading logic 2026-03-15 06:39:40 +02:00
Shea Duma 70e6660224 improved image loading logic 2026-03-15 05:56:17 +02:00
7w1 4925f0f579 Merge pull request #176 from dozro/feat/audio-recordings
Add voice message functionality
2026-03-14 21:59:07 +00:00
7w1 b2728598a0 Merge pull request #262 from dozro/fix/sticker-picker-webkit-speed-optimizations
Implement opt-in experimental bandwidth saving for stickers and emojis
2026-03-14 19:17:35 +00:00
7w1 8e67dbacbe Merge pull request #264 from piko-piko/urlpreview-middleclick
Middle click to open the url preview card thumbnail in a new tab
2026-03-14 15:16:24 +00:00
piko-piko 02aa299558 fixed formatting; fixed linting issues 2026-03-14 14:55:26 +01:00
7w1 28073b57a0 Merge pull request #253 from Vespe-r/small-notifications
Add width limit to notification banners
2026-03-14 12:38:55 +00:00
piko-piko 93c51ce6cc Middle click to open the preview card thumbnail in a new tab 2026-03-14 12:22:31 +01:00
Rye 8e07ab9911 implement bandwidth saving feature for stickers and emojis, but because it will increase server load make it opt-in and experimental 2026-03-14 05:45:44 +01:00
Evie Gauthier aed7b76f08 fix: resolve merge conflict markers and restore non-thread files from upstream 2026-03-13 23:48:22 -04:00
Evie Gauthier 0516054580 chore: remove non-thread files and references 2026-03-13 23:33:33 -04:00
Evie Gauthier dfcefe0d58 chore: remove thread-mockup and check-quality.sh, restore CallControls
- Remove src/app/features/thread-mockup/ directory and all mockup references
- Remove scripts/check-quality.sh
- Restore CallControls.tsx to origin/dev (removed unrelated changes)
- Verified RoomInput.tsx and RoomTimeline.tsx contain only thread-related changes
2026-03-13 23:30:01 -04:00