This commit implements basic push notification preferences as well as
the interface to change them.
Furthermore, the API interface was reworked to follow better REST API
conventions.
Testing
--------
PASS
Device: iPhone 15 simulators
iOS: 17.5
Damus: 4ea6c360e6e33747cb09ecf085049948ec1dadd1 (A commit from GH issue #2360)
notepush: This commit
Steps:
1. Disable all types of notifications, except for DMs.
2. Send a like to this user's post. Push notification should not appear. PASS
3. Send a DM to this user's post. Push notification should appear. PASS
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit should drastically improve performance of the relay.
It reduces contention by removing the mutex on NotificationManager and
replacing it with several smaller mutexes for each shared resource, so
that more operations can happen concurrently.
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>