Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Fetch all outstanding Mastodon notifications when creating Android notifications - #3700

Merged
nikclayton merged 2 commits into
tuskyapp:developfrom
nikclayton:3648-fetch-all-notifications
Jun 1, 2023
Merged

Fetch all outstanding Mastodon notifications when creating Android notifications#3700
nikclayton merged 2 commits into
tuskyapp:developfrom
nikclayton:3648-fetch-all-notifications

Conversation

@nikclayton

@nikclayton nikclayton commented May 30, 2023

Copy link
Copy Markdown
Contributor

Previous code fetched the oldest page of unfetched Mastodon notifications.

If you had more than a page of Mastodon notifications you'd get Android notifications for that page, then ~ 15 minutes later Android notifications for the next page, and so on.

This code fetches all the outstanding notifications at once.

If this results in more than 40 total notifications the list is still trimmed so that a maximum of 40 Android notifications is displayed.

Fixes #3648

…tifications

Previous code fetched the oldest page of unfetched Mastodon notifications.

If you had more than a page of Mastodon notifications you'd get Android notifications for that page, then ~ 15 minutes later Android notifications for the next page, and so on.

This code fetches all the outstanding notifications at once.

If this results in more than 40 total notifications the list is still trimmed so that a maximum of 40 Android notifications is displayed.

Fixes #3648
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NotificationFetcher does not fetch all notifications

2 participants