Skip to content

Commit becd020

Browse files
authored
Merge pull request #3692 from dpalou/MOBILE-4270
MOBILE-4214 push: Send public key to 4.1 sites that support it
2 parents eef7606 + c2e65a8 commit becd020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/features/pushnotifications/services/pushnotifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ export class CorePushNotificationsProvider {
781781
* @returns Public key, undefined if the site or the device doesn't support encryption.
782782
*/
783783
protected async getPublicKey(site: CoreSite): Promise<string | undefined> {
784-
if (!site.isVersionGreaterEqualThan('4.2')) {
784+
if (!site.wsAvailable('core_user_update_user_device_public_key')) {
785785
return;
786786
}
787787

0 commit comments

Comments
 (0)