From 7363ae8efe7e5d1a9633a55c1c93277e9247ad33 Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Thu, 8 Sep 2022 11:17:51 +0200 Subject: [PATCH] feat: Remove version field from the profile's avatar object --- .../shared/profiles/transformations/profileToRendererFormat.ts | 1 - packages/shared/profiles/transformations/types.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/shared/profiles/transformations/profileToRendererFormat.ts b/packages/shared/profiles/transformations/profileToRendererFormat.ts index 3c754885f..c9bc4bb00 100644 --- a/packages/shared/profiles/transformations/profileToRendererFormat.ts +++ b/packages/shared/profiles/transformations/profileToRendererFormat.ts @@ -39,7 +39,6 @@ export function profileToRendererFormat( avatar: { wearables: profile.avatar?.wearables || [], emotes: profile.avatar?.emotes || [], - version: profile.avatar?.emotes !== undefined ? 1 : 0, bodyShape: profile.avatar?.bodyShape || '', eyeColor: convertToRGBObject(profile.avatar?.eyes.color), hairColor: convertToRGBObject(profile.avatar?.hair.color), diff --git a/packages/shared/profiles/transformations/types.ts b/packages/shared/profiles/transformations/types.ts index 9d2dd5e90..08275ae5d 100644 --- a/packages/shared/profiles/transformations/types.ts +++ b/packages/shared/profiles/transformations/types.ts @@ -19,7 +19,6 @@ export type NewProfileForRenderer = { slot: number urn: string }[] - version: number // @TODO: remove this once Emotes is fully released. This helps the Renderer to know if it should fetch Emotes separately. } // TODO evaluate usage of the following