From 02b3b77a61929273dd4738f377bd48e5274ab8b0 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Mon, 31 Mar 2025 18:56:02 -0700 Subject: [PATCH] bind apple notification sender methods --- src/notifications/senders/AppleNotificationSender.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/notifications/senders/AppleNotificationSender.ts b/src/notifications/senders/AppleNotificationSender.ts index d64df98..8e5904a 100644 --- a/src/notifications/senders/AppleNotificationSender.ts +++ b/src/notifications/senders/AppleNotificationSender.ts @@ -17,6 +17,9 @@ export class AppleNotificationSender { private _lastRefreshedTimeMs: number | undefined = undefined; constructor(private shouldActuallySendNotifications = true) { + this.sendNotificationImmediately = this.sendNotificationImmediately.bind(this); + this.lastReloadedTimeForAPNsIsTooRecent = this.lastReloadedTimeForAPNsIsTooRecent.bind(this); + this.reloadAPNsTokenIfTimePassed = this.reloadAPNsTokenIfTimePassed.bind(this); } get lastRefreshedTimeMs(): number | undefined {