Replaceable event notifications & subscribed notifications for non-mentions #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Made quite a few changes here..
This is still backwards compatible as the API calls are the same, you can use the boolean flags to set the kind number.
notify_keys
which allows users to subscribe to notifications on when another pubkey posts an event (Live Stream / Article etc)This required a change to the notifications table to create a distinct key for replaceable events so that we only see a notification once (When its first published)
This PR includes all the changes i also made for FCM so it depends on #19
Direct compare: https://github.com/damus-io/notepush/compare/cbe9a65ccfaed67bb8cc6d9816cff04eeda2cb7c..44aade5de70219af238086df1783094bf1db3b2a