From ab1529a800e231954ff013f8f39bf96cc4583030 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Tue, 29 Jul 2025 17:47:56 +1200 Subject: [PATCH] user dialog platform --- src/components/dialogs/UserDialog/UserDialog.vue | 10 +++++----- src/shared/utils/user.js | 13 +++---------- src/stores/user.js | 6 ++++++ 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/components/dialogs/UserDialog/UserDialog.vue b/src/components/dialogs/UserDialog/UserDialog.vue index 3e645d25..6b1844ed 100644 --- a/src/components/dialogs/UserDialog/UserDialog.vue +++ b/src/components/dialogs/UserDialog/UserDialog.vue @@ -179,7 +179,7 @@ {{ t('dialog.user.tags.vrchat_team') }} iOS - {{ userDialog.ref.last_platform }} + {{ userDialog.ref.$platform }} { $customTagColour: '', $friendNumber: 0, $lastFetch: Date.now(), + $platform: '', // ...json }; @@ -595,6 +596,11 @@ export const useUserStore = defineStore('User', () => { ref.$isVRCPlus = ref.tags.includes('system_supporter'); appearanceSettingsStore.applyUserTrustLevel(ref); applyUserLanguage(ref); + if (ref.platform && ref.platform !== 'offline') { + ref.$platform = ref.platform; + } else { + ref.$platform = ref.last_platform; + } // traveling if (ref.location === 'traveling') { ref.$location = parseLocation(ref.travelingToLocation);