From c2e65a8917212c63fd8eb79b7ccc39f33a4750b7 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 26 May 2023 09:47:44 +0200 Subject: [PATCH] MOBILE-4214 push: Send public key to 4.1 sites that support it --- .../features/pushnotifications/services/pushnotifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/features/pushnotifications/services/pushnotifications.ts b/src/core/features/pushnotifications/services/pushnotifications.ts index eb8fca182..dc8a499b8 100644 --- a/src/core/features/pushnotifications/services/pushnotifications.ts +++ b/src/core/features/pushnotifications/services/pushnotifications.ts @@ -781,7 +781,7 @@ export class CorePushNotificationsProvider { * @returns Public key, undefined if the site or the device doesn't support encryption. */ protected async getPublicKey(site: CoreSite): Promise { - if (!site.isVersionGreaterEqualThan('4.2')) { + if (!site.wsAvailable('core_user_update_user_device_public_key')) { return; }