Commit Graph
1829 Commits
Author SHA1 Message Date
melogale 726129f9dd sable call and avatar fix 2026-03-10 02:08:52 -04:00
Evie Gauthier 93728221bb fix(presence): make sendPresence toggle work for classic sync too 2026-03-09 23:26:52 -04:00
Evie Gauthier d1e002ac6d feat(sliding-sync): tie presence extension into sendPresence setting 2026-03-09 23:26:52 -04:00
Evie Gauthier 6271bb79ee fix(lint): fix ESLint errors in ExtensionPresence and add changeset 2026-03-09 23:22:41 -04:00
Evie Gauthier 8f8502a536 feat(sliding-sync): register ExtensionPresence for live presence updates
Register a custom MSC4186 presence extension with the SlidingSync object so
that m.presence events delivered via extensions.presence.events are processed
into the SDK's User model on every poll.

Without this, the SlidingSync object only auto-registers ExtensionToDevice and
ExtensionAccountData (via SlidingSyncSdk), so presence payloads from the server
were silently discarded. Components using useUserPresence (Profile, MembersDrawer,
UserRoomProfile, UserHero, Presence) would always show stale/default presence.

The extension follows the same path as regular /sync: map raw events through
client.getEventMapper(), call user.setPresenceEvent() to update User state and
emit UserEvent.Presence, UserEvent.CurrentlyActive, UserEvent.LastPresenceTs,
then emit ClientEvent.Event on the client.
2026-03-09 23:22:41 -04:00
Evie Gauthier 1229bc0982 fix(lint): fix import order and suppress intentional await-in-loop 2026-03-09 23:22:41 -04:00
Evie Gauthier 6d00376164 chore: fix formatting (prettier) 2026-03-09 23:22:41 -04:00
Evie Gauthier 4a22e867ee fix(timeline): always reinit on TimelineRefresh to fix sliding sync hang 2026-03-09 23:22:41 -04:00
Evie Gauthier 62931d88ff feat: improve sliding sync to match Element Web approach
- Sort lists by notification level, recency, then name
- Add include_old_rooms for tombstoned room predecessor state
- Active-room custom subscription (timeline_limit=50) for the viewed room
- SlidingSyncManager.subscribeToRoom / unsubscribeFromRoom
- Export getSlidingSyncManager from initMatrix
- useSlidingSyncActiveRoom hook + SlidingSyncActiveRoomSubscriber component
- No changes to the classic sync path (startClassicSync / buildClient)
2026-03-09 23:20:19 -04:00
Evie Gauthier f2d71e59f3 Merge pull request #99 from Just-Insane/fix/notification-delivery-bugs
fix(notifications): notification delivery and routing fixes
2026-03-09 22:39:06 -04:00
Evie Gauthier f65549814b chore: fix formatting (prettier) 2026-03-09 21:39:49 -04:00
Evie Gauthier 4895d75535 fix(notifications): always fire OS notification on desktop (Discord-style) 2026-03-09 21:39:49 -04:00
Evie Gauthier 35af55e611 fix(notifications): suppress OS notification when app is focused; wrap in try/catch
Two bugs caused in-app notifications to silently vanish on desktop when
the window was focused:

1. window.Notification() was called unconditionally even when the window
   had focus.  In some browsers/environments (certain Chrome versions,
   Electron, macOS DnD mode) calling the Notification constructor throws
   or is silently rejected when the tab is active.  Without a try/catch
   the uncaught exception aborted the entire RoomEvent.Timeline handler
   before setInAppBanner was ever reached — so neither the OS notification
   NOR the in-app banner appeared.  InviteNotifications already used
   try/catch for the same reason; MessageNotifications did not.

2. The OS notification was semantically wrong when focused: the in-app
   banner is the correct alert while the window is active.  Added a
   !document.hasFocus() guard to match the comment's stated intent
   ("alert when minimised or tab not active") and to prevent a duplicate
   OS+in-app banner when another window is simply on top.

Mobile is unaffected: mobileOrTablet() already gates the OS block.
The in-app banner path (visibilityState === 'visible' → setInAppBanner)
is unchanged and continues to fire correctly on both desktop (focused)
and mobile (app visible in browser).
2026-03-09 21:39:49 -04:00
Evie Gauthier 0d4d449d5e fix(notifications): use orphan parent space for deep-link navigation
useNotificationJumper was using roomToParents.get(roomId) — the direct
parent set — which could be a subspace rather than a root-level space.
The router only recognises /space/<root-space-id>/room paths, so linking
via a subspace ID would hit JoinBeforeNavigate instead of opening the room.

Replace with the same logic as useRoomNavigate:
  getOrphanParents() walks the full hierarchy to find root-level spaces,
  guessPerfectParent() picks the best one to route through.
2026-03-09 21:39:49 -04:00
Evie Gauthier 7041c7e62a fix(notifications): revert DM badge highlight — only highlight on actual mentions/replies 2026-03-09 21:39:49 -04:00
Evie Gauthier 98f1535fd8 fix(notifications): treat DMs as loud regardless of mention/push-rule sound tweak
Two bugs caused by sliding sync's limited required_state (only $ME member):

1. DM badge was grey instead of green
   Synapse sends highlight_count=0 for DMs without mention; the badge only
   showed as Success (green) when highlight>0. DMs should always display
   the green badge for any unread. Fix: RoomNavItem treats direct && total>0
   as highlight for the UnreadBadge highlight prop.

2. DM OS notification was silent
   PushProcessor evaluates .m.rule.room_one_to_one by checking
   room_member_count==2, but with only m.room.member/$ME in required_state
   the member count is 1, so the rule fails. Events fall through to
   .m.rule.message (notify, no sound), leaving loudByRule=false and the
   OS notification silent:true. Fix: isLoud = loudByRule || isDM so that
   known DM rooms always produce non-silent notifications when sounds are on.
2026-03-09 21:39:49 -04:00
Evie Gauthier d87d720c7a fix: notification delivery bugs (push sound, OS notifications, in-app audio, media session)
- resolveSilent = () => false — OS/Sygnal handles push sound entirely; the
  in-app sound setting no longer affects push notification sound
- remove notificationSoundEnabled from SW postMessage payload
- move OS notification block before visibilityState guard so desktop
  notifications fire even when the browser window is minimised
- pass isEncryptedRoom:false for in-app banner preview — events are already
  decrypted by the SDK so the actual message body is always shown
- call clearMediaSessionQuickly() after play() to dismiss the iOS lock screen
  media player; only clears playbackState if no real media metadata is set
2026-03-09 21:39:49 -04:00
Evie Gauthier 8524f18a5f fix: update GITHUB_REPO constant to SableClient/Sable 2026-03-09 19:28:05 -04:00
Evie Gauthier 8e78ddd198 fix: remove stray conflict marker in useCommands.ts 2026-03-09 19:28:05 -04:00
Evie Gauthier 214e33164b feat(bug-report): match form fields to GitHub issue templates
Bug form: description (req), reproduction, expected-behavior, platform
(auto), context — matching bug_report.yml field ids.

Feature form: problem (req), solution (req), alternatives, context —
matching feature_request.yml field ids.

URL now uses template=<file>.yml and the field ids as query params so
GitHub pre-fills each form field directly, bypassing the template picker.
2026-03-09 19:28:05 -04:00
Evie Gauthier 4ce1bd4ffa feat: in-app bug report and feature request modal
- Add BugReportModal component with type selector (bug/feature)
- Debounced GitHub Search API integration for similar open issues
- Auto-populate platform info (Sable version, user agent) for bugs
- /report slash command opens the modal
- 'Report an Issue' button in Settings > About
- Uses existing Jotai atom + hooks pattern (bugReportOpenAtom)
- No authentication required; submits to GitHub pre-fill URL
2026-03-09 19:28:05 -04:00
7w1 4315b05e1c Merge pull request #98 from Just-Insane/fix/notification-banner
fix: in-app notification banner placement
2026-03-09 17:36:16 -05:00
7w1 2b6484258c Merge pull request #5 from dozro/fix/forwarding-button-duplicate-forwards
Manage forwarding state to prevent duplicate forwards in MessageForwardInternal
2026-03-09 17:20:47 -05:00
Evie Gauthier ba87ff7635 chore: add changeset and fix prettier formatting 2026-03-09 17:52:32 -04:00
Evie Gauthier 779a91f9e8 chore: update all repo references to SableClient/Sable
The project has moved from github.com/7w1/sable to
github.com/SableClient/Sable. Update all non-historical
references throughout the codebase:

- README.md: github.com and ghcr.io links
- CONTRIBUTING.md: issues link
- .github/ISSUE_TEMPLATE/bug_report.yml: existing-issues search link
- knope.toml: owner/repo for release automation
- src/app/features/settings/about/About.tsx: repo + pulls links
- src/app/pages/auth/AuthFooter.tsx: repo link
- src/app/pages/client/WelcomePage.tsx: source + changelog links

Historical PR/issue links in CHANGELOG.md and issue-specific deep-links
(e.g. github.com/7w1/sable/issues/146) are intentionally left pointing
to the old repo where those items live.
2026-03-09 17:47:26 -04:00
Evie Gauthier 198d7f068b Merge branch 'dev' into fix/notification-banner 2026-03-09 17:34:41 -04:00
7w1 937aff69a6 Merge branch 'dev' into fix/forwarding-button-duplicate-forwards 2026-03-09 16:10:37 -05:00
Evie Gauthier 780591580f fix: remove NotificationBanner from ClientNonUIFeatures
Completes the placement move — banner is now rendered only in
ClientLayout as position:fixed.
2026-03-09 16:57:39 -04:00
7w1 dd65e2241e Revert "avatars!" 2026-03-09 08:47:06 -05:00
7w1 d41f1479af Merge pull request #227 from melogale/dev
avatars!
2026-03-08 20:25:29 -05:00
7w1 f723749e67 Merge pull request #247 from CloudHub-Social/feat/notification-highlight
feat: full-width highlight for notify-loud/silent push rule messages
2026-03-08 20:15:31 -05:00
7w1 e315726eda Merge pull request #254 from CloudHub-Social/feat/notification-settings-ui
feat: notification settings page improvements
2026-03-08 20:14:01 -05:00
Rye c5dca6150d fix: prevent duplicate forwards by managing forwarding state in MessageForwardInternal 2026-03-09 01:57:17 +01:00
Rose 273f3e2166 Merge branch 'dev' into fix/broken-message-fallback 2026-03-09 01:35:10 +01:00
Rye 8eef74ef04 enhance UnsupportedContent and BrokenContent to display message body for better context 2026-03-09 01:28:14 +01:00
7w1 dfe782761d Merge pull request #262 from trash-pandy/sable/feat/pmp
Add MSC4144 per-message-profile rendering
2026-03-08 17:30:13 -05:00
7w1 8219fab32f unused import 2026-03-08 17:23:43 -05:00
7w1 de8c20af63 fix scroll clamping to bottom of timeline 2026-03-08 17:21:02 -05:00
7w1 e5f28d2c30 fix crash when invalid location sent 2026-03-08 17:06:00 -05:00
7w1 afd75d1134 Merge pull request #255 from CloudHub-Social/fix/notification-defaults
fix: default badge unread counts to off
2026-03-08 16:30:34 -05:00
Trash Panda 47bed67396 Add MSC4144 per-message-profile rendering 2026-03-08 14:28:41 -07:00
7w1 6cb66b9882 Merge pull request #261 from 7w1/fix/scroll-patches
fix scroll when clicking message links
2026-03-08 16:27:11 -05:00
7w1 ee90d652ac Merge pull request #257 from dozro/fix/message-forwarding-custom-html
fix properly apply block quotes so that custom html also gets forwarded
2026-03-08 16:24:26 -05:00
7w1 a7e8223896 fix scroll when clicking message links 2026-03-08 16:20:44 -05:00
7w1 e6e892cf6d lint and docs 2026-03-08 14:40:03 -05:00
melogale eb608768cc merge up 2026-03-08 15:31:07 -04:00
7w1 3c2e29849e merge upstream 2026-03-08 14:30:06 -05:00
Rye 41c7794848 fix: properly apply blockquotes so that custom html also gets forwarded 2026-03-08 20:01:33 +01:00
7w1 ba7b253e43 Merge pull request #250 from dozro/feat/cute-events
Add cute events (hug, cuddle, wave, poke, headpat)
2026-03-08 13:45:51 -05:00
Evie Gauthier f3ca62b5d2 fix: default badge unread counts to off
showUnreadCounts defaults to false — unread badges show a number only for
direct mentions (Discord-style). Users can opt in to full counts in
Notifications settings.
2026-03-08 14:40:06 -04:00