chinwag-android/app/schemas/com.keylesspalace.tusky.db.AppDatabase
Nik Clayton 81b15e72f3
Only fetch and display a given notification once (#3626)
When fetching:

- Maintain a marker with the position of the newest fetched notification
- Use the marker to determine which notifications to fetch
- Fetch notifications with min_id to ensure that none are lost
- Update the marker as necessary
- Perform a one-time immediate fetch of notifications on startup

When creating notifications:

- Identify each notification with tag=${MastodonNotificationId}, id=${account.id}
- Remove activeNotifications field, it's no longer necessary
- Use the tag/id tuple to reliably identify existing notifications and avoid creating duplicates
- Cancelling notifications for an account must iterate over all the notifications, and individually remove the notifications that exist for that account.
- Limit notifications to a maximum of 40 (excluding summary notifications)
- Remove notifications (oldest first) to get under this limit
- Rate limit notification creation to 1 per second, so the OS won't drop them

Adjust the summary notification:

- Ensure the summary notification and the child notifications have the same group key
- Dismiss the summary notification if there is only one child notification

NotificationClearBroadcastReceiver is no longer needed, so remove it, and the need for deletePendingIntent.

Fixes #3625, #3539
2023-05-13 16:00:28 +02:00
..
10.json
11.json
12.json
13.json remove unneeded instance id from db cache (#1035) 2019-02-13 19:20:31 +01:00
14.json
15.json
16.json
17.json
18.json
19.json
20.json
21.json
22.json Add notifications for follow requests (#1729) 2020-03-19 22:02:10 +01:00
23.json
24.json Notification bell (#2012) 2020-12-23 12:52:39 +01:00
25.json
26.json
27.json
28.json
29.json
30.json
31.json
32.json
33.json
34.json
35.json
36.json
37.json
38.json Fix conversations (#2556) 2022-05-30 19:06:14 +02:00
39.json
40.json
41.json
42.json
43.json Language selection fixes (#2917) 2022-11-24 15:45:19 +01:00
44.json Add support for moderation report notifications (#2887) 2022-12-01 20:11:55 +01:00
45.json Status: Display indicators of edited posts (#2935) 2022-12-03 12:15:54 +01:00
46.json add 46.json (#3116) 2022-12-29 19:29:33 +01:00
47.json Dialog notifying user of failure when media upload fails (#3135) 2023-01-27 20:50:45 +01:00
48.json Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
49.json Save the user's reading position in the home timeline (#3614) 2023-05-08 13:57:17 +02:00
50.json Only fetch and display a given notification once (#3626) 2023-05-13 16:00:28 +02:00