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

View File

@@ -51,7 +51,8 @@ export const useDiscordPresenceSettingsStore = defineStore(
joinUrl: '',
worldLink: '',
accessName: '',
groupAccessType: ''
groupAccessType: '',
groupAccessName: ''
}
});
@@ -190,7 +191,8 @@ export const useDiscordPresenceSettingsStore = defineStore(
joinUrl: '',
worldLink: '',
accessName: '',
groupAccessType: ''
groupAccessType: '',
groupAccessName: ''
};
try {
const args = await worldRequest.getCachedWorld({
@@ -234,13 +236,14 @@ export const useDiscordPresenceSettingsStore = defineStore(
}
}
}
state.lastLocationDetails.groupAccessType = L.groupAccessType;
if (L.groupAccessType) {
if (L.groupAccessType === 'public') {
state.lastLocationDetails.groupAccessType = t(
state.lastLocationDetails.groupAccessName = t(
'dialog.new_instance.group_access_type_public'
);
} else if (L.groupAccessType === 'plus') {
state.lastLocationDetails.groupAccessType = t(
state.lastLocationDetails.groupAccessName = t(
'dialog.new_instance.group_access_type_plus'
);
}
@@ -267,7 +270,7 @@ export const useDiscordPresenceSettingsStore = defineStore(
try {
const groupName = await getGroupName(L.groupId);
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) {
console.error(

View File

@@ -1214,7 +1214,7 @@
</template>
<div style="float: right">
<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
}}</span>
<span v-if="lastLocationTimer && (onlineForTimer || pcUptime)" style="display: inline-block">