From 9ec65fbcc82802d8316cec3e9ba7fc2fc34671ec Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Wed, 13 May 2026 03:00:06 +0300 Subject: [PATCH] feat(LCELive): outgoing friend requests --- src/components/views/LceLiveView.tsx | 34 ++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/components/views/LceLiveView.tsx b/src/components/views/LceLiveView.tsx index adf017f..0cddc81 100644 --- a/src/components/views/LceLiveView.tsx +++ b/src/components/views/LceLiveView.tsx @@ -28,7 +28,7 @@ const LceLiveView = memo(function LceLiveView() { const [acceptInvite, setAcceptInvite] = useState(null); const [friends, setFriends] = useState([]); const [incomingReqs, setIncomingReqs] = useState([]); - const [_outgoingReqs, setOutgoingReqs] = useState([]); + const [outgoingReqs, setOutgoingReqs] = useState([]); const [invites, setInvites] = useState([]); const [linkData, setLinkData] = useState(null); const [linkError, setLinkError] = useState(null); @@ -327,6 +327,17 @@ const LceLiveView = memo(function LceLiveView() { ), }); }); + outgoingReqs.forEach((r) => { + items.push({ + id: `req_out_${r.accountId}`, + type: "request_out", + label: r.displayName, + onClick: () => + handleAction(() => + lceLiveService.declineFriendRequest(r.accountId), + ), + }); + }); } else if (currentTab === "invites") { invites.forEach((inv) => { items.push({ @@ -349,6 +360,7 @@ const LceLiveView = memo(function LceLiveView() { currentTab, friends, incomingReqs, + outgoingReqs, invites, linkData, playPressSound, @@ -637,7 +649,11 @@ const LceLiveView = memo(function LceLiveView() { ? incomingReqs.find( (f) => `req_in_${f.accountId}` === item.id, )?.username - : "Invite"} + : item.type === "request_out" + ? outgoingReqs.find( + (f) => `req_out_${f.accountId}` === item.id, + )?.username + : "Invite"} @@ -691,6 +707,20 @@ const LceLiveView = memo(function LceLiveView() { )} + {item.type === "request_out" && ( + + )} {(item.type === "request_in" || item.type === "invite") && ( <>