From 6a5090627ad40fea140c70d388e866f5dec4b78d Mon Sep 17 00:00:00 2001 From: maurycy <5383+maurycy@users.noreply.github.com> Date: Mon, 16 Nov 2020 17:59:41 +0100 Subject: [PATCH] SentFile: default to personal --- core/textile/sharing.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/textile/sharing.go b/core/textile/sharing.go index 07eca812..71821a8d 100644 --- a/core/textile/sharing.go +++ b/core/textile/sharing.go @@ -319,9 +319,17 @@ func (tc *textileClient) buildInvitationSharedDirEntry( }) } + fileBucket := file.Bucket + fileDbID := file.DbID + + if isSentFiles { + fileBucket = defaultPersonalBucketSlug + fileDbID = "" + } + res := &domain.SharedDirEntry{ - Bucket: file.Bucket, - DbID: file.DbID, + Bucket: fileBucket, + DbID: fileDbID, FileInfo: domain.FileInfo{ IpfsHash: ipfsHash, LocallyAvailable: isSentFiles,