Commit Graph
355 Commits
Author SHA1 Message Date
7w1 9ebbdbc966 Merge pull request #193 from CloudHub-Social/pr/fix/notification-banner-behavior
fix(notifications): banner default off on desktop, show for DMs, fix space navigation
2026-03-06 10:53:47 -06:00
Rye 7af4ee5c7c disable spellcheck and auto correct on login items (username and homeserver address) 2026-03-06 17:21:51 +01:00
Evie Gauthier 80e049fc5e fix(notifications): banner default off on desktop, show for DMs, fix space navigation 2026-03-06 10:10:22 -05:00
Bea b1d5844da8 feat: show dev version with commit hash when not on a release tag 2026-03-06 14:53:08 +00:00
Bea e713f19ac7 fix: source version from APP_VERSION instead of hard coding 2026-03-06 13:31:31 +00:00
Sylvie Fox b0d568ff40 fix version to match latest release 2026-03-06 00:12:59 -07:00
Sylvie Fox af26eebd59 fix version to match latest release 2026-03-06 00:11:24 -07:00
7w1 cef877d65b fixed fr trust 2026-03-06 00:15:00 -06:00
7w1 9ef4531eee fix disable in app notifs on desktop 2026-03-05 23:58:09 -06:00
Evie Gauthier d1ae1d4594 fix(notifications): show rich body in banner; fix encrypted msg dedup
- Add early-return guard for m.room.encrypted in MessageNotifications
  so eventId is never added to notifiedEventsRef before decryption.
  Without this, the post-decryption re-emission was deduped and the
  banner showed "Encrypted Message" instead of actual content.

- Build ReactNode bodyNode via getReactCustomHtmlParser + parse +
  sanitizeCustomHtml for org.matrix.custom.html messages, mirroring
  the timeline renderer pipeline (mxc images, mentions, etc.).

- Add bodyNode?: ReactNode to InAppBannerNotification type.

- Add BodyNode component in NotificationBanner; falls back to
  existing plain-text BodyText path when bodyNode is absent.
2026-03-05 22:21:15 -05:00
7w1 74fa7201ce Merge pull request #173 from CloudHub-Social/pr/fix/sw-notifications
fix(notifications): SW push deep-links, visibility suppression, settings decoupling, nav fix
2026-03-05 20:56:03 -06:00
Evie Gauthier 9dc3075266 fix(notifications): export HandleNotificationClick to match Router.tsx import 2026-03-05 19:30:34 -05:00
Evie Gauthier f9b452bde1 fix(notifications): SW push deep-links, visibility suppression, settings decoupling, nav fix
- Rewrite notificationclick to deep-link via /to/:user_id/:room_id/:event_id so
  the correct account is activated on cold PWA launch (ToRoomEvent -> pendingNotificationAtom)
- Suppress OS/SW push notification when the app window is already visible;
  track visibility via postMessage from the app on visibilitychange
- Remove preferPushOnMobile dead code
- Add useSystemNotifications setting (desktop-only, default true on desktop);
  split it out from useInAppNotifications so pill and OS notifications are
  independently controlled
- Settings UI: desktop shows In-App + System Notifications; mobile shows
  In-App + Push Notifications; each hides the irrelevant third toggle
- Fix InviteNotifications / MessageNotifications to gate OS notifications on
  useSystemNotifications + !mobileOrTablet(); pill remains gated on useInAppNotifications
- Fix NotificationJumper: bypass useRoomNavigate (which routes through space
  path) -- navigate directly via getHomeRoomPath / getDirectRoomPath so tapping
  a pill banner on mobile opens the room timeline, not the space-nav panel
- When the app is already open, use postMessage({ type: notificationClick })
  from SW to the running window; new ServiceWorkerClickHandler component handles
  it with the same setActiveSessionId + setPending path as the pill flow;
  /to/ URL kept as cold-launch fallback only
2026-03-05 19:13:31 -05:00
Evie Gauthier fe37ae23f3 feat(settings): badge count DMs-only toggle and highlight-only app badge option 2026-03-05 19:11:11 -05:00
Evie Gauthier f6cf0d13b7 fix: resolve lint and formatting issues for quality checks 2026-03-05 00:57:08 -05:00
Evie Gauthier 5372e36153 feat(notifications): in-app notification banner, account unread counts, and Discord-style floating pill 2026-03-05 00:51:02 -05:00
7w1 8ed41cb555 Merge pull request #121 from 7w1/changelog-updates
1.3.3 Changelog updates and version bump
2026-03-04 22:35:49 -06:00
7w1 f5fc86bf41 Merge pull request #127 from CloudHub-Social/fix/notification-delivery
fix: notification delivery, account switching, and unread count toggle
2026-03-04 22:11:43 -06:00
Evie Gauthier c2a43ec43a fix(badges): improve unread count calculation and background session highlight badges
- getUnreadInfo: guard stale-count clamp with roomHaveUnread; exclude own messages
  from clamp trigger; walk live timeline to compute real fallback counts using
  PushProcessor instead of hard-coding dot badge
- roomToUnreadAtom: remove mDirectAtom dependency for DM parent filtering;
  add ClientEvent.Room handler to seed badge state when rooms join
- sessionsHighlightAtom added to track highlight counts per inactive session
- AccountSwitcherTab: show UnreadBadge on inactive session rows and sidebar icon
2026-03-04 22:24:19 -05:00
Evie Gauthier c996e5e31b fix(notifications): iOS reliability, SW click handling, and account switching
- HandleNotificationClick moved outside ClientRoot loading gate so SW postMessages
  are never dropped during account-switch reloads
- iOS Safari event.source=null guard removed; type-check used instead
- ToRoomEvent simplified: writes pendingNotificationAtom + sets active session,
  delegates navigation to NotificationJumper
- NotificationJumper: jumpingRef prevents repeated navigation; stable performJumpRef
  avoids re-registering listeners on every atom change during account switch
- BackgroundNotifications: uses SW showNotification for reliable tap routing on iOS;
  dedupeId is now userId+eventId scoped; visibility guard prevents backgrounded
  in-app popups; ref pattern avoids stale closure on settings
- SW: persist/restore notification settings across iOS SW restarts via Cache API;
  group notifications by room (tag + renotify); prefer navigate() over postMessage
  when available; prefer visible tab on notificationclick
- pushNotification: resolveSilent respects tweaks.sound; recipientId in title;
  fallbackNotification removed (redundant)
- RoomTimeline: use ref for handleOpenEvent to stop re-pulling on every new message
2026-03-04 22:24:19 -05:00
Rye 1862e418f3 formatting using fmt 2026-03-05 02:52:33 +01:00
Rye 049a12dbc4 fix(auth): disable auto-capitalization for server and username inputs 2026-03-05 02:38:50 +01:00
7w1 e7ed00e5ed bump version 2026-03-04 12:27:28 -06:00
Evie Gauthier 497d74eddf fix(badges): show highlight count on highlighted badges, total on standard
The UnreadBadge supports a separate highlight count and total count, but all
call sites were only passing the total. Update DirectTab, HomeTab, SpaceTabs,
and Search to pass the highlight count when the badge is in highlight state,
so @-mention counts are reflected accurately in the sidebar.
2026-03-04 10:54:25 -05:00
7w1 4dbf29df67 Merge pull request #94 from 7w1/changelog-updates
1.3.2 changelog and metadata updates
2026-03-03 22:23:49 -06:00
7w1 bfb1e48c1b fix logout flow 2026-03-03 22:18:52 -06:00
7w1 d647219163 delete cinny twitter link 2026-03-03 19:00:38 -06:00
Evie Gauthier 716cc9211a fix user registration flow 2026-03-03 17:27:40 -05:00
7w1 18d5fdf078 bump version 2026-03-03 12:30:06 -06:00
Evie Gauthier 775a17e5d0 Add toggle-able message previews to notifictions 2026-03-03 10:36:38 -05:00
7w1 e7f1ff118a Update version number to v1.3.1 2026-03-03 08:59:20 -06:00
7w1 d9dfbedc0b Update version number to v1.3.1 2026-03-03 08:58:50 -06:00
Evie Gauthier d95d31fd04 fix inbox notification/invite isues and add enhancements 2026-03-03 09:07:43 -05:00
Evie Gauthier 4fd1dbaa60 add additional sliding sync diagnostics 2026-03-03 08:05:01 -05:00
7w1 d43ad10738 bump version 2026-03-03 00:55:17 -06:00
Evie Gauthier 576255c174 attempt fix for "dancing rooms" 2026-03-03 00:18:13 -05:00
Evie Gauthier 4ec6399c74 pull import fixes 2026-03-02 20:46:27 -05:00
Evie Gauthier 986031ca8a Fixed import issues 2026-03-02 19:52:09 -05:00
Evie Gauthier e1b7844ff8 Add initial sliding sync support 2026-03-02 19:34:51 -05:00
Evie Gauthier bc2ff06380 Pull in upstream changes and run validations 2026-03-02 18:40:06 -05:00
Evie Gauthier db698543a3 Merge branch 'dev' into dev 2026-03-02 18:16:38 -05:00
7w1 08fa7cd67f make eslint happy 2026-03-02 15:10:21 -06:00
Evie Gauthier 759acbb191 Force push notifications on mobile, as in-app notifications are unreliable 2026-03-02 14:36:57 -05:00
Evie Gauthier 58e92c22f9 Fix issues with in-app and push at same time, and properly switch to correct session before opening room on click 2026-03-02 14:19:18 -05:00
Evie Gauthier 49c661b70f Combine push notifications with the background notification handler 2026-03-02 14:10:25 -05:00
hazre bde1505ad4 refactor: normalize parent-relative imports to aliases 2026-03-02 20:00:26 +01:00
hazre dd7d404c29 chore(lint): fix even more eslint issues 2026-03-02 18:56:59 +01:00
hazre ff28e18d4b chore(lint): lint autofix 2026-03-02 09:35:07 +01:00
hazre 019b713377 Merge remote-tracking branch 'sable/dev' into feat/add-knip 2026-03-02 09:21:56 +01:00
7w1 90dd4c721a bump version 2026-03-02 00:34:35 -06:00