Fix hiding group only instances for RPC

This commit is contained in:
Natsumi
2025-09-24 23:00:47 +12:00
parent 968abf26fa
commit 562457a933
2 changed files with 9 additions and 6 deletions
+8 -5
View File
@@ -51,7 +51,8 @@ export const useDiscordPresenceSettingsStore = defineStore(
joinUrl: '', joinUrl: '',
worldLink: '', worldLink: '',
accessName: '', accessName: '',
groupAccessType: '' groupAccessType: '',
groupAccessName: ''
} }
}); });
@@ -190,7 +191,8 @@ export const useDiscordPresenceSettingsStore = defineStore(
joinUrl: '', joinUrl: '',
worldLink: '', worldLink: '',
accessName: '', accessName: '',
groupAccessType: '' groupAccessType: '',
groupAccessName: ''
}; };
try { try {
const args = await worldRequest.getCachedWorld({ const args = await worldRequest.getCachedWorld({
@@ -234,13 +236,14 @@ export const useDiscordPresenceSettingsStore = defineStore(
} }
} }
} }
state.lastLocationDetails.groupAccessType = L.groupAccessType;
if (L.groupAccessType) { if (L.groupAccessType) {
if (L.groupAccessType === 'public') { if (L.groupAccessType === 'public') {
state.lastLocationDetails.groupAccessType = t( state.lastLocationDetails.groupAccessName = t(
'dialog.new_instance.group_access_type_public' 'dialog.new_instance.group_access_type_public'
); );
} else if (L.groupAccessType === 'plus') { } else if (L.groupAccessType === 'plus') {
state.lastLocationDetails.groupAccessType = t( state.lastLocationDetails.groupAccessName = t(
'dialog.new_instance.group_access_type_plus' 'dialog.new_instance.group_access_type_plus'
); );
} }
@@ -267,7 +270,7 @@ export const useDiscordPresenceSettingsStore = defineStore(
try { try {
const groupName = await getGroupName(L.groupId); const groupName = await getGroupName(L.groupId);
if (groupName) { if (groupName) {
state.lastLocationDetails.accessName = `${t('dialog.new_instance.access_type_group')}${state.lastLocationDetails.groupAccessType}(${groupName}) #${L.instanceName}${platform}`; state.lastLocationDetails.accessName = `${t('dialog.new_instance.access_type_group')}${state.lastLocationDetails.groupAccessName}(${groupName}) #${L.instanceName}${platform}`;
} }
} catch (e) { } catch (e) {
console.error( console.error(
+1 -1
View File
@@ -1214,7 +1214,7 @@
</template> </template>
<div style="float: right"> <div style="float: right">
<span v-if="!config?.minimalFeed" style="display: inline-block">{{ t('vr.status.timer') }}</span> <span v-if="!config?.minimalFeed" style="display: inline-block">{{ t('vr.status.timer') }}</span>
<span v-if="lastLocationTimer" style="display: inline-block; margin-left: 5px">{{ <span v-if="lastLocationTimer" style="display: inline-block; margin-right: 5px">{{
lastLocationTimer lastLocationTimer
}}</span> }}</span>
<span v-if="lastLocationTimer && (onlineForTimer || pcUptime)" style="display: inline-block"> <span v-if="lastLocationTimer && (onlineForTimer || pcUptime)" style="display: inline-block">