Closed jcroskery closed 2 years ago
Is this still a draft?
On Sun, Dec 5, 2021, 1:30 PM Justus Croskery @.***> wrote:
If there is no internet access, Soup will return a status code of either 2 or 3 (see https://gjs-docs.gnome.org/soup24~2.72.0/soup.status#default-cant_resolve). Displaying a "Failed to get authorization" message in this case seems unnecessary.
You can view, comment on, or merge this pull request online at:
https://github.com/shumingch/gnome-email-notifications/pull/40 Commit Summary
- 6b6ebce https://github.com/shumingch/gnome-email-notifications/pull/40/commits/6b6ebce4f014ac5edd9490c70bee6bd97518ee85 Closes #25
File Changes
(1 file https://github.com/shumingch/gnome-email-notifications/pull/40/files)
- M InboxScanner.js https://github.com/shumingch/gnome-email-notifications/pull/40/files#diff-891d94bd612220b0d2c4d0dbd24821ece00bd9de3d54c213ece22f5835ef6c15 (2)
Patch Links:
- https://github.com/shumingch/gnome-email-notifications/pull/40.patch
- https://github.com/shumingch/gnome-email-notifications/pull/40.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/shumingch/gnome-email-notifications/pull/40, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXJYJWQH5O6JQW7XG6XBE3UPPKWJANCNFSM5JNHGZHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
There are two possible errors that can occur when there is no network connection. The GET request that finds unread emails may fail, or the Gnome Online Accounts (GOA) access token may have expired. I only noticed the second error after I created this pull request, so I converted the request into a draft.
The pull request is now ready for review.
If there is no internet access, Soup will return a status code of either 2 or 3 (see https://gjs-docs.gnome.org/soup24~2.72.0/soup.status#default-cant_resolve). Displaying a "Failed to get authorization" message in this case seems unnecessary.