From 2ffde79530a4e3af8840f8e3ae9ebd7f152f796d Mon Sep 17 00:00:00 2001 From: Jonas Lochmann Date: Mon, 1 Aug 2022 02:00:00 +0200 Subject: [PATCH] Increase encrypted app list size limit --- src/action/updateinstalledapps.ts | 2 +- src/function/sync/get-server-data-status/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/action/updateinstalledapps.ts b/src/action/updateinstalledapps.ts index 31fa979..0e664fe 100644 --- a/src/action/updateinstalledapps.ts +++ b/src/action/updateinstalledapps.ts @@ -19,7 +19,7 @@ import { AppLogicAction } from './basetypes' import { InvalidActionParameterException } from './meta/exception' const actionType = 'UpdateInstalledAppsAction' -const SIZE_LIMIT = 1024 * 256 +const SIZE_LIMIT = 1024 * 512 export class UpdateInstalledAppsAction extends AppLogicAction { readonly base?: Buffer diff --git a/src/function/sync/get-server-data-status/index.ts b/src/function/sync/get-server-data-status/index.ts index 104eecf..95ffe67 100644 --- a/src/function/sync/get-server-data-status/index.ts +++ b/src/function/sync/get-server-data-status/index.ts @@ -51,7 +51,7 @@ export const generateServerDataStatus = async ({ familyEntry.hasFullVersion ? parseInt(familyEntry.fullVersionUntil, 10) : 0 ), message: await getStatusMessage({ database, transaction }) || undefined, - apiLevel: 4 + apiLevel: 5 } if (familyEntry.deviceListVersion !== clientStatus.devices) {