Describe the bug
The count on the inbox is limited to 50. Likely API-related.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The count should drop from the previously displayed number, but instead still shows there are 50 notifications remaining.
Screenshots


Smartphone (please complete the following information):
Can you open TestFlight and paste the inbox API request? When did you start using the app?
FYI the GitHub API doesn't give you historical notifications, just from when you start using the app.
I'm not sure where to find the request in testflight. I've been using the app for months now.
Here's a video of what I'm seeing: https://puu.sh/BVrlP/ab9bd1ca9c.MP4
I think this is related to pagination with Notification API.
Maybe parsing web version HTML could be a choice if we don’t have the notifications unread count from API?
Not so sure if we want to go that far 😅
Would rather approach GitHub to ask for a better API if we'd be seriously considering that 😄
I was checking the Network History and I see that when loading the notifications, only the first page of 50 records is loaded so this should be why we can only see the badge up until 50, even when in my case I have about 450.
The response Link header has this info:
<https://api.github.com/notifications?
access_token=XXX=false&page=2&participating=false&per_page=50>; rel="next",
<https://api.github.com/notifications?
access_token=XXX=false&page=8&participating=false&per_page=50>; rel="last"
So we might have 2 choices:
Maybe number 2 is more direct and reliable, let me know what you think
I would def be a fan of this being improved but understand that it’s not a huge value and would def increase api-fetch toll, which you’re probably hesitant to do.
Related, i noticed the badge for “all” only shows unread count. For example I have 44 read notifs/16 unread, the latter badge is what shows for “inbox”; when I switch to “all”, the count shows 12 unread. The 12 is not a true number due to the pagination issue we’ve discussed above. But, would it make sense to have that badge actually reflect true “unread” count of 44?
I see what you're getting at, but feel that it would be more confusing than understandable in most cases.
Hm, what about "50+" in case we have any next response links?
Most helpful comment
Hm, what about "50+" in case we have any
nextresponse links?