fix: socket options

This commit is contained in:
SamuelScheit
2023-05-12 18:02:41 +02:00
parent 6ab9ca5714
commit 6ecc5a8757
4 changed files with 14 additions and 15 deletions

View File

@@ -88,17 +88,10 @@ export const generateRegistrationNode = (
const appVersionBuf = createHash('md5')
.update(config.version.join('.')) // join as string
.digest()
const browserVersion = config.browser[2].split('.')
const companion: proto.IDeviceProps = {
os: config.browser[0],
version: {
primary: +(browserVersion[0] || 0),
secondary: +(browserVersion[1] || 1),
tertiary: +(browserVersion[2] || 0),
},
platformType: proto.DeviceProps.PlatformType[config.browser[1].toUpperCase()]
|| proto.DeviceProps.PlatformType.UNKNOWN,
platformType: proto.DeviceProps.PlatformType.DESKTOP,
requireFullSync: config.syncFullHistory,
}