Commit Graph
1843 Commits
Author SHA1 Message Date
Rye bef4904485 add posibility for silent reply 2026-03-10 18:25:12 +01:00
7w1 48824e37fb Merge pull request #107 from dozro/feat/steal-sticker-alt
add button to add a sticker you see in a message to your own user sticker pack
2026-03-10 10:13:50 -05:00
7w1 4e51a36c1f style fixes 2026-03-10 00:45:28 -05:00
7w1 83d20e0a32 Merge pull request #111 from nushea/sable-edit-history
Feat: Option for showing a message's edit history
2026-03-10 00:25:40 -05:00
Shea Duma f79d124fd2 updated styling to better fit with the message aspect 2026-03-10 05:56:21 +02: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
Rye 6f56e4fb07 fix spelling mistake lol 2026-03-09 23:28:55 +01:00
Rye a9595ba216 fix of issue where the mimetype was swapped with the body 2026-03-09 23:25:36 +01: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
Rye 3bdad5ddb4 add functionality to add a sticker you see in a message to the user's sticker pack 2026-03-09 23:03:19 +01: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
Shea Duma b09709deb6 added encrypted room support 2026-03-09 05:13:23 +02:00
Shea Duma d16e431c74 added borders on hover 2026-03-09 03:42:29 +02: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
Shea Duma c63727e232 added version history formatting 2026-03-09 03:02:26 +02:00
Rye c5dca6150d fix: prevent duplicate forwards by managing forwarding state in MessageForwardInternal 2026-03-09 01:57:17 +01:00
Shea Duma d0e5d7c9ec Merge remote-tracking branch 'upstream/dev' into sable-edit-history 2026-03-09 02:37:36 +02:00
Shea Duma 7b7c60a7d1 made message history conditional 2026-03-09 02:37:23 +02: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