Commit Graph
885 Commits
Author SHA1 Message Date
Kris Hu b56e793a15 fix(noti): try-catch all badge API calls 2026-02-15 19:06:46 -06:00
Kris Hu 6a9fe21fe9 fix(push): prevent sliding back after clicking push notification killing the pwa 2026-02-15 19:06:46 -06:00
Kris Hu 54d2ddf1f5 keep push notification alive
currenttly all browser requrire a `push` produces a notification, if
not, push subscription may be revoked.

see:
https://github.com/firebase/firebase-js-sdk/issues/8010#issuecomment-2119275829

in this case, sygnal, the push gateway will send unread count, and
create a `push` event, when messages are read on other clients.
Therefore we have no choice but to stop sygnal from pushing data that
won't be presented as notifications

see:
https://github.com/element-hq/sygnal/blob/da48ba7457409391c1d12140ce2ea3d49d377ff3/sygnal/webpushpushkin.py#L142-L145
2026-02-15 19:06:46 -06:00
Kris Hu 75816cf991 fix(sw): only import matrix sdk types 2026-02-15 19:06:46 -06:00
Kris Hu 6abd8ff6bf fix(to): load space list first 2026-02-15 19:06:45 -06:00
Kris Hu 25d77d5132 fix(push): use unique tag for push notifications 2026-02-15 19:06:45 -06:00
Kris Hu 7151597888 fix(notification): allow in-app notification in background when push notification isn't enabled 2026-02-15 19:06:45 -06:00
Kris Hu 7083bff113 feature(sw): add invitation support for push notification 2026-02-15 19:06:45 -06:00
Kris Hu 10ef89ed3a close push notifications when all have been read 2026-02-15 19:06:45 -06:00
Kris Hu 6d962a64f9 avoid duplicated notification from push and in-app
still need to handle invitation notification
2026-02-15 19:06:45 -06:00
Kris Hu 8b55ffa045 when a notification is clicked, jump to corresponding event
if event_id is not available, jump to inbox

i haven't check app notification, this is for push notification for now
2026-02-15 19:06:20 -06:00
Kris Hu bb14a049c2 direct to inbox when notification is clicked 2026-02-15 19:01:18 -06:00
Kris Hu bc5438955d format push notification 2026-02-15 19:01:18 -06:00
Jaggar 9440e63dc9 Merge branch 'cinnyapp:dev' into add-push-notifs 2025-06-30 04:38:38 +00:00
Gigiaj 3d9f7f4e26 adjust name of showNotifications to useInAppNotifications and add usePushNotifications 2025-06-29 23:36:18 -05:00
Gigiaj 6359b8547d Update names to reflect real behavior 2025-06-29 23:35:53 -05:00
Gigiaj 5831325c6d Update imports 2025-06-29 23:35:20 -05:00
Gigiaj 72bb04f190 Swap to using the atom values instead of raw setting them in the component. Passing the values forward as needed. 2025-06-29 23:35:07 -05:00
Gigiaj f31087e685 update name 2025-06-29 23:34:18 -05:00
Gigiaj c909629150 adjust name to reflect new values 2025-06-29 23:34:05 -05:00
Gigiaj 35e5d90dcc use deregister pushers component 2025-06-29 23:33:52 -05:00
Gigiaj e3a450a679 Add deregister pushers component 2025-06-29 23:33:39 -05:00
Gigiaj d3e3ecb64b update imports 2025-06-29 23:29:10 -05:00
Gigiaj 296a2463da useAppVisibility change hook instead of baking into client root for cleanliness 2025-06-29 23:29:03 -05:00
Gigiaj 4123299af5 remove unused method for push notif visibility changes 2025-06-29 23:28:30 -05:00
Gigiaj cfea393f2d Revise to use atom values and simplify; modify to check for valid subscription via self-heal; modify togglePusher to defer to the users push notif setting before visibility changes 2025-06-29 23:27:55 -05:00
Gigiaj b689089599 Place our storage handling into a state module instead and reference it 2025-06-29 23:27:48 -05:00
Gigiaj b972f308f4 Add visibility hook to remove from the ClientRoot 2025-06-29 23:23:04 -05:00
RGBCube ebe5beba1d Add support for more code highlight (#2355) 2025-06-29 16:13:47 +05:30
Gimle Larpes 77ab37f637 Fix focus behaviour when opening single-purpose features (#2349)
* Improve focus behaviour on search boxes and chats

* Implemented MR #2317

* Fix crash if canMessage is false

* Prepare for PR #2335

* disable autofocus on message field
2025-06-28 20:15:21 +05:30
Gimle Larpes 461e730c34 Make "View Source" a developer tool (#2368) 2025-06-28 16:05:59 +05:30
Priyansh 05e83eabef Fix auto focus in "Join with Address" text input (#2317) 2025-06-27 21:50:28 +05:30
Gigiaj ff7c40ec85 Swap our visibility handler and notification implementation to use the global app events 2025-06-21 05:11:31 -05:00
Gigiaj 2861ccdc46 Add global app events 2025-06-21 05:11:04 -05:00
Gigiaj 77bbb94bfa swap fetch to use retry logic (shouldn't occur very often, but when it does we don't want to immediately fail) 2025-06-20 17:03:51 -05:00
Gigiaj 60af716dbc move nav badge handling to favicon and sum total there for it 2025-06-20 17:03:51 -05:00
Gigiaj 8cbc9ce601 Remove incorrect nav badge handling placement 2025-06-20 17:03:51 -05:00
Gigiaj 72aa386238 Remove incorrect nav badge handling placement 2025-06-20 17:03:51 -05:00
Gigiaj f24c6cce76 Prevent firefox from crashing because of no badging API 2025-06-20 17:03:51 -05:00
Gigiaj 815a0ac7f4 set app badge 2025-06-20 17:03:51 -05:00
Gigiaj 350f3ac2f7 forgot to remove removed const ref 2025-06-20 17:03:51 -05:00
Ajay Bura c416785f76 Release v4.8.1 (#2360) 2025-06-20 17:03:51 -05:00
Ajay Bura fb0a0f83aa Add allow from currently selected space if no m.space.parent found (#2359) 2025-06-20 17:03:51 -05:00
Ajay Bura b8eb1b999e Fix space navigation & view space timeline dev-option (#2358)
* fix inaccessible space on alias change

* fix new room in space open in home

* allow opening space timeline

* hide event timeline feature behind dev tool

* add navToActivePath to clear cache function
2025-06-20 17:03:51 -05:00
Gigiaj 654f32bd31 Add store to push notif setting to local storage (so we can manage the pusher state cleanly) 2025-06-20 17:03:51 -05:00
Gigiaj b148cc3d1b Remove subscription / service worker check requirement 2025-06-20 17:03:51 -05:00
Gigiaj c57509ac7b Remove large comment block, no longer needed 2025-06-20 17:03:51 -05:00
Gigiaj 13d38e8525 Fix imports 2025-06-20 17:03:51 -05:00
Gigiaj a02a10eda1 adjust to reflect using the service worker to actually toggle 2025-06-20 17:03:51 -05:00
Gigiaj 129599572d add client config to parameters 2025-06-20 17:03:51 -05:00