From d7644c03942fbf0457cfa8c06fb879da39453faf Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Tue, 11 Apr 2017 00:15:46 -0400 Subject: [PATCH] My Files: include channel names in URIs --- ui/js/page/file-list.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/js/page/file-list.js b/ui/js/page/file-list.js index 561cc6106..2d2cfdb18 100644 --- a/ui/js/page/file-list.js +++ b/ui/js/page/file-list.js @@ -161,13 +161,19 @@ export let FileList = React.createClass({ seenUris = {}; const fileInfosSorted = this._sortFunctions[this.state.sortBy](this.props.fileInfos); - for (let {name, outpoint, metadata: {stream: {metadata}}, mime_type, claim_id} of fileInfosSorted) { + for (let {outpoint, name, channel_name, metadata: {stream: {metadata}}, mime_type, claim_id} of fileInfosSorted) { if (!metadata || seenUris[name]) { continue; } + let fileUri; + if (channel_name === undefined) { + fileUri = uri.buildLbryUri({name}); + } else { + fileUri = uri.buildLbryUri({name: channel_name, path: name}); + } seenUris[name] = true; - content.push(); }