mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Replace getFriendStatus with friendRequestStatus
This commit is contained in:
+12
-3
@@ -12706,6 +12706,13 @@ speechSynthesis.getVoices();
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
D.ref = ref;
|
D.ref = ref;
|
||||||
|
D.incomingRequest = false;
|
||||||
|
D.outgoingRequest = false;
|
||||||
|
if (D.ref.friendRequestStatus === 'incoming') {
|
||||||
|
D.incomingRequest = true;
|
||||||
|
} else if (D.ref.friendRequestStatus === 'outgoing') {
|
||||||
|
D.outgoingRequest = true;
|
||||||
|
}
|
||||||
$app.applyUserDialogLocation();
|
$app.applyUserDialogLocation();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -12941,6 +12948,11 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
D.isFavorite = API.cachedFavoritesByObjectId.has(D.id);
|
D.isFavorite = API.cachedFavoritesByObjectId.has(D.id);
|
||||||
|
if (D.ref.friendRequestStatus === 'incoming') {
|
||||||
|
D.incomingRequest = true;
|
||||||
|
} else if (D.ref.friendRequestStatus === 'outgoing') {
|
||||||
|
D.outgoingRequest = true;
|
||||||
|
}
|
||||||
this.applyUserDialogLocation();
|
this.applyUserDialogLocation();
|
||||||
if (this.$refs.userDialogTabs.currentName === '0') {
|
if (this.$refs.userDialogTabs.currentName === '0') {
|
||||||
this.userDialogLastActiveTab = 'Info';
|
this.userDialogLastActiveTab = 'Info';
|
||||||
@@ -12972,9 +12984,6 @@ speechSynthesis.getVoices();
|
|||||||
this.userDialogLastActiveTab = 'JSON';
|
this.userDialogLastActiveTab = 'JSON';
|
||||||
this.refreshUserDialogTreeData();
|
this.refreshUserDialogTreeData();
|
||||||
}
|
}
|
||||||
API.getFriendStatus({
|
|
||||||
userId: D.id
|
|
||||||
});
|
|
||||||
if (args.cache) {
|
if (args.cache) {
|
||||||
API.getUser(args.params);
|
API.getUser(args.params);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user