fix: use API v0 for Android [skip e2e]

This commit is contained in:
moughxyz
2024-03-11 14:15:15 -05:00
parent 9e2d496804
commit 6d872cd45a

View File

@@ -113,8 +113,10 @@ export class WebApplication extends SNApplication implements WebApplicationInter
defaultHost: defaultSyncServerHost,
appVersion: deviceInterface.appVersion,
webSocketUrl: webSocketUrl,
/** iOS file:// based origin does not work with production cookies */
apiVersion: platform === Platform.Ios ? ApiVersion.v0 : ApiVersion.v1,
/**
* iOS file:// based origin does not work with production cookies
*/
apiVersion: platform === Platform.Ios || platform === Platform.Android ? ApiVersion.v0 : ApiVersion.v1,
loadBatchSize:
deviceInterface.environment === Environment.Mobile ? 250 : ApplicationOptionsDefaults.loadBatchSize,
sleepBetweenBatches: