Commit Graph
3173 Commits
Author SHA1 Message Date
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 d1ead2937a Merge pull request #295 from SableClient/feat/encrypted-push
feat(push): encrypted push notifications via event_id_only and decryption relay
2026-03-16 14:35:25 +00: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
Evie Gauthier 042d441046 chore: add changeset for encrypted push 2026-03-16 09:09:10 -04:00
Evie Gauthier 293ab69a40 fix(push): resolve lint and type errors in encrypted push implementation 2026-03-16 09:08:50 -04: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 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
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
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
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
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
7w1 f80f2737de Merge pull request #272 from SableClient/release
chore: prepare release 1.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
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
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