Skip to content

Commit

Permalink
SentFile: default to personal
Browse files Browse the repository at this point in the history
  • Loading branch information
maurycy authored Nov 16, 2020
1 parent 9fc3b12 commit 6a50906
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions core/textile/sharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6a50906

Please sign in to comment.