Skip to content

Commit 8736043

Browse files
committed
refactor(poll): updates stale comments for OAuth App model
1 parent 885a783 commit 8736043

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/services/poll.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface PollCoordinator {
3636
// ── Notifications gate ───────────────────────────────────────────────────────
3737

3838
let _notifLastModified: string | null = null;
39-
let _notifGateDisabled = false; // Disabled after 403 (missing notifications permission)
39+
let _notifGateDisabled = false; // Disabled after 403 (notifications scope not granted)
4040

4141
function resetPollState(): void {
4242
_notifLastModified = null;
@@ -54,7 +54,7 @@ onAuthCleared(resetPollState);
5454
* Returns true if there are new notifications (or first check), false if unchanged.
5555
* Uses If-Modified-Since for zero-cost 304 checks (doesn't count against rate limit).
5656
*
57-
* Auto-disables after a 403 (missing notifications permission) to stop wasting
57+
* Auto-disables after a 403 (notifications scope not granted) to stop wasting
5858
* rate limit tokens on requests that will always fail.
5959
*/
6060
async function hasNotificationChanges(): Promise<boolean> {
@@ -89,7 +89,7 @@ async function hasNotificationChanges(): Promise<boolean> {
8989
) {
9090
return false; // Nothing changed since last check
9191
}
92-
// 403 = missing notifications permission — disable gate permanently
92+
// 403 = notifications scope not granted — disable gate permanently
9393
// to stop burning rate limit tokens on every poll cycle
9494
if (
9595
typeof err === "object" &&

0 commit comments

Comments
 (0)