Merge pull request #3692 from dpalou/MOBILE-4270

MOBILE-4214 push: Send public key to 4.1 sites that support it
main
Noel De Martin 2023-05-26 10:00:39 +02:00 committed by GitHub
commit becd020329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}