mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 18:53:47 +02:00
Clean up treeData
This commit is contained in:
@@ -31,7 +31,6 @@ import {
|
||||
import { processBulk, request } from '../service/request';
|
||||
import { AppDebug } from '../service/appConfig';
|
||||
import { database } from '../service/database';
|
||||
import { formatJsonVars } from '../shared/utils/base/ui';
|
||||
import { useAppearanceSettingsStore } from './settings/appearance';
|
||||
import { useAuthStore } from './auth';
|
||||
import { useAvatarStore } from './avatar';
|
||||
@@ -236,7 +235,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
},
|
||||
avatarSorting: 'update',
|
||||
avatarReleaseStatus: 'all',
|
||||
treeData: {},
|
||||
memo: '',
|
||||
$avatarInfo: {
|
||||
ownerId: '',
|
||||
@@ -732,8 +730,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
} else if (D.ref.friendRequestStatus === 'outgoing') {
|
||||
D.outgoingRequest = true;
|
||||
}
|
||||
// refresh user dialog JSON tab
|
||||
refreshUserDialogTreeData();
|
||||
}
|
||||
if (hasPropChanged) {
|
||||
if (
|
||||
@@ -1239,18 +1235,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
});
|
||||
}
|
||||
|
||||
function refreshUserDialogTreeData() {
|
||||
const D = userDialog.value;
|
||||
if (D.id === currentUser.value.id) {
|
||||
D.treeData = formatJsonVars({
|
||||
...currentUser.value,
|
||||
...D.ref
|
||||
});
|
||||
return;
|
||||
}
|
||||
D.treeData = formatJsonVars(D.ref);
|
||||
}
|
||||
|
||||
async function lookupUser(ref) {
|
||||
let ctx;
|
||||
if (ref.userId) {
|
||||
@@ -2064,7 +2048,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
applyUserDialogLocation,
|
||||
sortUserDialogAvatars,
|
||||
refreshUserDialogAvatars,
|
||||
refreshUserDialogTreeData,
|
||||
lookupUser,
|
||||
updateAutoStateChange,
|
||||
addCustomTag,
|
||||
|
||||
Reference in New Issue
Block a user