Browser crash message, mutual friends message

This commit is contained in:
Natsumi
2025-12-30 15:36:45 +13:00
parent c49635561c
commit 5e9dcfbd3f
6 changed files with 63 additions and 30 deletions

View File

@@ -584,6 +584,20 @@
</el-dropdown>
</div>
</div>
<div
v-if="mutualFriendsError"
@click="openExternalLink('https://docs.vrchat.com/docs/vrchat-202542#mutuals')"
style="
margin-top: 20px;
display: flex;
justify-content: center;
align-items: center;
color: #f56c6c;
cursor: pointer;
">
<el-icon style="margin-right: 5px"><Warning /></el-icon>
<span>Mutual Friends unavailable due to VRChat staged rollout, click for more info</span>
</div>
<ul
class="x-friend-list"
style="margin-top: 10px; overflow: auto; max-height: 250px; min-width: 130px">
@@ -1536,6 +1550,7 @@
const isEditNoteAndMemoDialogVisible = ref(false);
const vrchatCredit = ref(null);
const mutualFriendsError = ref(false);
const userDialogAvatars = computed(() => {
const { avatars, avatarReleaseStatus } = userDialog.value;
@@ -2222,6 +2237,7 @@
const mutualIds = userDialog.value.mutualFriends.map((u) => u.id);
database.updateMutualsForFriend(userId, mutualIds);
}
mutualFriendsError.value = !success;
}
});
}

View File

@@ -1964,6 +1964,9 @@
"screenshot_metadata": {
"deleted": "Screenshot metadata deleted",
"delete_failed": "Failed to delete screenshot metadata"
},
"crash": {
"vrcx_crash": "VRCX has recovered from a crash."
}
},
"prompt": {

View File

@@ -525,11 +525,22 @@ export const useVrcxStore = defineStore('Vrcx', () => {
async function startupLaunchCommand() {
const command = await AppApi.GetLaunchCommand();
if (command) {
eventLaunchCommand(command);
if (!command) {
return;
}
if (command.startsWith('crash/')) {
const crashMessage = command.replace('crash/', '');
console.error('VRCX recovered from crash:', crashMessage);
ElMessageBox.alert(
crashMessage,
t('message.crash.vrcx_crash')
).catch(() => {});
return;
}
eventLaunchCommand(command);
}
// called from C#
function eventLaunchCommand(input) {
if (!watchState.isLoggedIn) {
return;