Improve push notifications (#4896)
Besides the refactoring these improvements: * Track last push distributor and reset settings and subscription on any incompatible change (ie. uninstall) * Only update (push) notification settings on server if needed * Allow to only fetch notifications for one account (the one for which a push message was received) This is (also) the revival of https://github.com/tuskyapp/Tusky/pull/3642 It's not really well tested so far. (Ie. with two or more accounts or two or more push providers.)
This commit is contained in:
parent
f95dbe82b0
commit
6450af6edb
14 changed files with 274 additions and 127 deletions
|
|
@ -106,7 +106,9 @@ class MainActivityTest {
|
|||
on { areNotificationsEnabled() } doReturn true
|
||||
},
|
||||
mock(),
|
||||
mock(),
|
||||
context,
|
||||
mock(),
|
||||
)
|
||||
|
||||
notificationService.createNotificationChannelsForAccount(accountEntity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue