mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Fixes
This commit is contained in:
@@ -276,6 +276,9 @@
|
|||||||
},
|
},
|
||||||
"badge": {
|
"badge": {
|
||||||
"earned": "Badge Earned"
|
"earned": "Badge Earned"
|
||||||
|
},
|
||||||
|
"vrcplus": {
|
||||||
|
"gift": "VRC+ Gift"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+5
-1
@@ -759,7 +759,11 @@ export const useUserStore = defineStore('User', () => {
|
|||||||
* @param {string} userId
|
* @param {string} userId
|
||||||
*/
|
*/
|
||||||
function showUserDialog(userId) {
|
function showUserDialog(userId) {
|
||||||
if (!userId || typeof userId !== 'string') {
|
if (
|
||||||
|
!userId ||
|
||||||
|
typeof userId !== 'string' ||
|
||||||
|
userId === 'usr_00000000-0000-0000-0000-000000000000'
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const D = userDialog.value;
|
const D = userDialog.value;
|
||||||
|
|||||||
+19
-6
@@ -355,12 +355,25 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
|||||||
displayName: user.displayName
|
displayName: user.displayName
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
newPath = await AppApi.AddScreenshotMetadata(
|
try {
|
||||||
path,
|
newPath = await AppApi.AddScreenshotMetadata(
|
||||||
JSON.stringify(metadata),
|
path,
|
||||||
location.worldId,
|
JSON.stringify(metadata),
|
||||||
advancedSettingsStore.screenshotHelperModifyFilename
|
location.worldId,
|
||||||
);
|
advancedSettingsStore.screenshotHelperModifyFilename
|
||||||
|
);
|
||||||
|
} catch (e) {
|
||||||
|
console.error('Failed to add screenshot metadata', e);
|
||||||
|
if (e.message.includes('UnauthorizedAccessException')) {
|
||||||
|
ElMessage({
|
||||||
|
message:
|
||||||
|
'Failed to add screenshot metadata, access denied. Make sure VRCX has permission to access the screenshot folder.',
|
||||||
|
type: 'error',
|
||||||
|
duration: 10000
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!newPath) {
|
if (!newPath) {
|
||||||
console.error('Failed to add screenshot metadata', path);
|
console.error('Failed to add screenshot metadata', path);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -66,11 +66,12 @@
|
|||||||
return str;
|
return str;
|
||||||
};
|
};
|
||||||
for (const userId of friends) {
|
for (const userId of friends) {
|
||||||
const { ref } = props.friends.get(userId);
|
|
||||||
let discord = '';
|
let discord = '';
|
||||||
if (typeof ref === 'undefined') {
|
const friend = props.friends.get(userId);
|
||||||
|
if (typeof friend?.ref === 'undefined') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
const ref = friend.ref;
|
||||||
const name = ref.displayName;
|
const name = ref.displayName;
|
||||||
if (ref.statusDescription) {
|
if (ref.statusDescription) {
|
||||||
const statusRegex = /(?:discord|dc|dis)(?: |=|:|˸|;)(.*)/gi.exec(ref.statusDescription);
|
const statusRegex = /(?:discord|dc|dis)(?: |=|:|˸|;)(.*)/gi.exec(ref.statusDescription);
|
||||||
|
|||||||
Reference in New Issue
Block a user