7320 Commits
Author SHA1 Message Date
Evie Gauthier c3cc02103c Merge pull request #289 from SableClient/fix/direct-tab-double-badge
fix(direct): prevent double-badge on /direct/ icon for rooms in sidebar
2026-03-15 18:56:22 +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
Evie Gauthier b74cb0bb28 chore: add changeset for thread fallback reply fix 2026-03-15 13:56:08 -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 8a517b1bdb add changeset 2026-03-15 18:43: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
Evie Gauthier 69fc890a03 Merge pull request #279 from Just-Insane/fix/timeline-all-fixes
fix(timeline): stable refs, scroll guard, and listener leak fixes
2026-03-15 17:12:17 +00: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
Kace Cottam 515b378a20 Added setting to control depth limit and cleaned up the code 2026-03-15 00:44:23 -07:00
Shea Duma a6cb35becd added changeset file 2026-03-15 09:27:47 +02: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
Kace Cottam 8c4f5e512c Initial modification of Space navbar to have svg thread lines 2026-03-14 23:47:30 -07: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
jasonlaguidice 349d71dfce Add changeset 2026-03-14 17:38:02 -07:00
jasonlaguidice d2d0025098 Add graceful fail if MSC4140 event delay exceeded 2026-03-14 17:35:49 -07:00
haz b90555a27c Merge pull request #275 from SableClient/fix/release-tag-workflows
fix: align workflows to v* tags and support manual release deploys
2026-03-14 23:19:07 +00:00
hazre c710b5d803 fix: align workflows to v* tags and support manual release deploys 2026-03-15 00:16:30 +01:00
Kace Cottam 1445f3fdcf Merge branch 'dev' into improve-space 2026-03-14 16:08:49 -07:00
Kace Cottam bf36587df3 Update Space sidebar with depth-based link to space lobby 2026-03-14 16:05:42 -07:00
7w1 f80f2737de Merge pull request #272 from SableClient/release
chore: prepare release 1.8.0
v1.8.0
2026-03-14 22:25:10 +00:00
github-actions[bot] edddf2c06c chore: prepare release 1.8.0 2026-03-14 22:20:09 +00:00
7w1 162625a915 Merge pull request #274 from SableClient/7w1-patch-2
Update add_voice_message_func.md
2026-03-14 22:17:43 +00:00
7w1 25bb9dc7d2 Update add_voice_message_func.md 2026-03-14 17:16:04 -05:00
7w1 efeac92d08 Merge pull request #273 from SableClient/7w1-patch-1
add back deleted changeset
2026-03-14 22:10:46 +00:00
7w1 5cf778e891 Create fix_call_prefs.md 2026-03-14 17:08:57 -05:00
7w1 4925f0f579 Merge pull request #176 from dozro/feat/audio-recordings
Add voice message functionality
2026-03-14 21:59:07 +00:00
hazre 4795fb387e fix: move window creation into rust side for easier control 2026-03-14 20:48:20 +01:00
hazre e8670348ff feat: add cef support and switch to tauri-typegen for bindings (wip)
- deep link sso is busted on dev
2026-03-14 20:48:19 +01: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 c13cb81035 Merge pull request #271 from SableClient/fix/workflows
fix workflows again
2026-03-14 18:57:29 +00:00
7w1 ee3fdf68d5 Update prepare-release.yml 2026-03-14 13:55:38 -05:00
7w1 2419d75615 Merge pull request #270 from SableClient/fix/workflows
Fix workflows
2026-03-14 18:48:51 +00:00
7w1 74a4d6a9ec Update prepare-release.yml 2026-03-14 13:47:28 -05:00
7w1 6881752c31 Update prepare-release.yml 2026-03-14 13:41:58 -05:00
7w1 f63a347df4 Update prepare-release.yml 2026-03-14 13:39:54 -05:00
7w1 fbbd46cd62 Update cloudflare-web-deploy.yml 2026-03-14 13:37:37 -05:00