* Convert all top-level arrow functions to regular functions
* Refactor webPush.sendNotification call
* Refactor webPush logging
* Rename var to title
* Rewrite service worker
This rewrite simplifies the service worker by removing
* merging of push notifications via tag property
* badge count
These features weren't properly working on iOS. We concluded that we don't really need them.
For example, this means replies will no longer get merged to "you have X new replies" but show up as individual notifications.
Only zaps still use the tag property so devices that support it can still replace any previous "your post stacked X sats" notification for the same item.
* Don't use async/await in service worker
* Support app badge count
* Fix extremely slow notificationclick
* Fix serialization and save in pushsubscriptionchange event
* Remove service worker logger
* Use async/await for togglePushSubscription
* Remove commented out logger calls in service worker
* Remove message channel between service worker and app
The listener for messages from the service worker was removed in a previous commit.
* Remove unused OS detection for service worker
* Formatting
* Remove unnecessary service worker message types
These messages types were meant to debug or fix push notifications getting lost.
We figured out the issue: push notifications were lost because of silent pushes.
So these message types are no longer needed.
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
* Remove service worker logger
* Use async/await for togglePushSubscription
* Remove commented out logger calls in service worker
* Remove message channel between service worker and app
The listener for messages from the service worker was removed in a previous commit.
* Remove unused OS detection for service worker
* Remove directReceive setting
* Never fallback to direct if proxy is enabled
---------
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
* fix embed list bullet to render at top of embed
* make it work for images/video
* fix tweet skeleton and list horizontal scroll
---------
Co-authored-by: k00b <k00b@stacker.news>
This function can be removed because it will never do anything when called.
It does not do anything for wrapped invoices, and it will never get called for direct payments (since we don't know when the invoice was paid).
These are the only two payment methods for the RECEIVE paid action since 5a8804d.
* Add Territory Sub management tab in Subscriptions
* don't use queryRawUnsafe
* auto width on select
* separate into pages for browser nav
* fix multiple separators
* simplify queries
---------
Co-authored-by: k00b <k00b@stacker.news>