MOBILE-4214 push: Send public key to 4.1 sites that support it

main
Dani Palou 2023-05-26 09:47:44 +02:00
parent 060e66011b
commit c2e65a8917
1 changed files with 1 additions and 1 deletions

View File

@ -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<string | undefined> {
if (!site.isVersionGreaterEqualThan('4.2')) {
if (!site.wsAvailable('core_user_update_user_device_public_key')) {
return;
}