From ff31815dd5dfc4a3759226a3bd59e7a890b94a51 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Thu, 12 May 2022 05:09:03 +1200 Subject: [PATCH] Replace getFriendStatus with friendRequestStatus --- html/src/app.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index f0a8920a..8a999074 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -12706,6 +12706,13 @@ speechSynthesis.getVoices(); return; } 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(); }); @@ -12941,6 +12948,11 @@ speechSynthesis.getVoices(); } } 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(); if (this.$refs.userDialogTabs.currentName === '0') { this.userDialogLastActiveTab = 'Info'; @@ -12972,9 +12984,6 @@ speechSynthesis.getVoices(); this.userDialogLastActiveTab = 'JSON'; this.refreshUserDialogTreeData(); } - API.getFriendStatus({ - userId: D.id - }); if (args.cache) { API.getUser(args.params); }