diff --git a/ps5-mqtt/server/src/psn-account.ts b/ps5-mqtt/server/src/psn-account.ts index 87de64b..277ff96 100644 --- a/ps5-mqtt/server/src/psn-account.ts +++ b/ps5-mqtt/server/src/psn-account.ts @@ -10,7 +10,18 @@ export module PsnAccount { titleImage: string; titleName: string; + /** + * Type of device the title was created for. + * + * @type {NormalizedDeviceType} + */ platform: NormalizedDeviceType; + + /** + * Type of device the title is being used on. + * + * @type {NormalizedDeviceType} + */ launchPlatform: NormalizedDeviceType; } diff --git a/ps5-mqtt/server/src/redux/sagas/update-account.ts b/ps5-mqtt/server/src/redux/sagas/update-account.ts index c748a6e..d76dd7e 100644 --- a/ps5-mqtt/server/src/redux/sagas/update-account.ts +++ b/ps5-mqtt/server/src/redux/sagas/update-account.ts @@ -16,7 +16,7 @@ function* updateAccount({ payload: account }: UpdateAccountAction) { clonedDeviceState.activity?.activePlayers.some(p => p === account.accountName); // the player is using an app that matches the current device's platform - if (account.activity !== undefined && clonedDeviceState.type === account.activity.platform) { + if (account.activity !== undefined && clonedDeviceState.type === account.activity.launchPlatform) { // mark activity as the new activity, extending player list in the process clonedDeviceState.activity = { ...account.activity,