From 3e1064d6485f714a70e19dd0401f082d5d6ffcd6 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 6 Nov 2023 21:59:11 +0530 Subject: [PATCH] Update index.html --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index c7040a4..e6a9020 100644 --- a/index.html +++ b/index.html @@ -796,7 +796,8 @@ const filteredRequests = []; const approvedRequests = new Set(); Object.values(kycRequests).forEach((request) => { - const { time, tag, note, senderID } = request; + const { time, tag, note, senderID, receiverID } = request; + if (!floCrypto.isSameAddr(receiverID, floDapps.user.id)) return; const floAddress = getFloAddress(senderID) if (status === 'pending') { if (approvedRequests.has(floAddress)) @@ -952,6 +953,7 @@ const fileEntryResponse = await floCloudAPI.sendGeneralData({ docType: selectedIdProof, docVectorClock: vectorClock, + receiverID: floCrypto.getFloID(selectedVerifier), }, 'userKycRequests') fileEntryResponse.message = floCloudAPI.util.decodeMessage(fileEntryResponse.message) // add file entry to general data