payload: {"action":"created","comment":{"url":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/comments/364316438","pull_request_review_id":339977559,"id":364316438,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2NDMxNjQzOA==","diff_hunk":"@@ -41,19 +75,21 @@ function FileDownloadLink(props: Props) {\n         />\n       </ToolTip>\n     );\n-  } else {\n-    return (\n-      <ToolTip label={__('Add to your library')}>\n-        <Button\n-          button=\"alt\"\n-          icon={ICONS.DOWNLOAD}\n-          onClick={() => {\n-            download(uri);\n-          }}\n-        />\n-      </ToolTip>\n-    );\n   }\n+\n+  return (\n+    <ToolTip label={IS_WEB ? __('Download') : __('Add to your library')}>\n+      <Button\n+        button=\"alt\"\n+        icon={ICONS.DOWNLOAD}\n+        onClick={handleDownload}\n+        // @if TARGET='web'\n+        download={fileName}\n+        href={downloadUrl}","path":"ui/component/fileDownloadLink/view.jsx","position":82,"original_position":82,"commit_id":"487345edc715a4be3e6e41f6279da4e900a63e5e","original_commit_id":"487345edc715a4be3e6e41f6279da4e900a63e5e","user":{"login":"kauffj","id":530774,"node_id":"MDQ6VXNlcjUzMDc3NA==","avatar_url":"https://avatars0.githubusercontent.com/u/530774?v=4","gravatar_id":"","url":"https://api.github.com/users/kauffj","html_url":"https://github.com/kauffj","followers_url":"https://api.github.com/users/kauffj/followers","following_url":"https://api.github.com/users/kauffj/following{/other_user}","gists_url":"https://api.github.com/users/kauffj/gists{/gist_id}","starred_url":"https://api.github.com/users/kauffj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kauffj/subscriptions","organizations_url":"https://api.github.com/users/kauffj/orgs","repos_url":"https://api.github.com/users/kauffj/repos","events_url":"https://api.github.com/users/kauffj/events{/privacy}","received_events_url":"https://api.github.com/users/kauffj/received_events","type":"User","site_admin":false},"body":"(Yes, I understand it isn't used)","created_at":"2020-01-08T16:17:32Z","updated_at":"2020-01-08T16:17:32Z","html_url":"https://github.com/lbryio/lbry-desktop/pull/3457#discussion_r364316438","pull_request_url":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/3457","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/comments/364316438"},"html":{"href":"https://github.com/lbryio/lbry-desktop/pull/3457#discussion_r364316438"},"pull_request":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/3457"}},"in_reply_to_id":364315869},"pull_request":{"url":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/3457","id":360110155,"node_id":"MDExOlB1bGxSZXF1ZXN0MzYwMTEwMTU1","html_url":"https://github.com/lbryio/lbry-desktop/pull/3457","diff_url":"https://github.com/lbryio/lbry-desktop/pull/3457.diff","patch_url":"https://github.com/lbryio/lbry-desktop/pull/3457.patch","issue_url":"https://api.github.com/repos/lbryio/lbry-desktop/issues/3457","number":3457,"state":"open","locked":false,"title":"enable downloads on lbry.tv","user":{"login":"seanyesmunt","id":16882830,"node_id":"MDQ6VXNlcjE2ODgyODMw","avatar_url":"https://avatars0.githubusercontent.com/u/16882830?v=4","gravatar_id":"","url":"https://api.github.com/users/seanyesmunt","html_url":"https://github.com/seanyesmunt","followers_url":"https://api.github.com/users/seanyesmunt/followers","following_url":"https://api.github.com/users/seanyesmunt/following{/other_user}","gists_url":"https://api.github.com/users/seanyesmunt/gists{/gist_id}","starred_url":"https://api.github.com/users/seanyesmunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanyesmunt/subscriptions","organizations_url":"https://api.github.com/users/seanyesmunt/orgs","repos_url":"https://api.github.com/users/seanyesmunt/repos","events_url":"https://api.github.com/users/seanyesmunt/events{/privacy}","received_events_url":"https://api.github.com/users/seanyesmunt/received_events","type":"User","site_admin":false},"body":"#### Todo\r\n- [x] Trigger view event for download click\r\n- [x] ~Fix html/pdf viewer~ api side fix needed","created_at":"2020-01-07T18:13:09Z","updated_at":"2020-01-08T16:17:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f44a57ed945c2f9d5f01994eec4e61cdb9b97a7f","assignee":{"login":"seanyesmunt","id":16882830,"node_id":"MDQ6VXNlcjE2ODgyODMw","avatar_url":"https://avatars0.githubusercontent.com/u/16882830?v=4","gravatar_id":"","url":"https://api.github.com/users/seanyesmunt","html_url":"https://github.com/seanyesmunt","followers_url":"https://api.github.com/users/seanyesmunt/followers","following_url":"https://api.github.com/users/seanyesmunt/following{/other_user}","gists_url":"https://api.github.com/users/seanyesmunt/gists{/gist_id}","starred_url":"https://api.github.com/users/seanyesmunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanyesmunt/subscriptions","organizations_url":"https://api.github.com/users/seanyesmunt/orgs","repos_url":"https://api.github.com/users/seanyesmunt/repos","events_url":"https://api.github.com/users/seanyesmunt/events{/privacy}","received_events_url":"https://api.github.com/users/seanyesmunt/received_events","type":"User","site_admin":false},"assignees":[{"login":"seanyesmunt","id":16882830,"node_id":"MDQ6VXNlcjE2ODgyODMw","avatar_url":"https://avatars0.githubusercontent.com/u/16882830?v=4","gravatar_id":"","url":"https://api.github.com/users/seanyesmunt","html_url":"https://github.com/seanyesmunt","followers_url":"https://api.github.com/users/seanyesmunt/followers","following_url":"https://api.github.com/users/seanyesmunt/following{/other_user}","gists_url":"https://api.github.com/users/seanyesmunt/gists{/gist_id}","starred_url":"https://api.github.com/users/seanyesmunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanyesmunt/subscriptions","organizations_url":"https://api.github.com/users/seanyesmunt/orgs","repos_url":"https://api.github.com/users/seanyesmunt/repos","events_url":"https://api.github.com/users/seanyesmunt/events{/privacy}","received_events_url":"https://api.github.com/users/seanyesmunt/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/3457/commits","review_comments_url":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/3457/comments","review_comment_url":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lbryio/lbry-desktop/issues/3457/comments","statuses_url":"https://api.github.com/repos/lbryio/lbry-desktop/statuses/487345edc715a4be3e6e41f6279da4e900a63e5e","head":{"label":"lbryio:download","ref":"download","sha":"487345edc715a4be3e6e41f6279da4e900a63e5e","user":{"login":"lbryio","id":13889222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODg5MjIy","avatar_url":"https://avatars3.githubusercontent.com/u/13889222?v=4","gravatar_id":"","url":"https://api.github.com/users/lbryio","html_url":"https://github.com/lbryio","followers_url":"https://api.github.com/users/lbryio/followers","following_url":"https://api.github.com/users/lbryio/following{/other_user}","gists_url":"https://api.github.com/users/lbryio/gists{/gist_id}","starred_url":"https://api.github.com/users/lbryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbryio/subscriptions","organizations_url":"https://api.github.com/users/lbryio/orgs","repos_url":"https://api.github.com/users/lbryio/repos","events_url":"https://api.github.com/users/lbryio/events{/privacy}","received_events_url":"https://api.github.com/users/lbryio/received_events","type":"Organization","site_admin":false},"repo":{"id":79149882,"node_id":"MDEwOlJlcG9zaXRvcnk3OTE0OTg4Mg==","name":"lbry-desktop","full_name":"lbryio/lbry-desktop","private":false,"owner":{"login":"lbryio","id":13889222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODg5MjIy","avatar_url":"https://avatars3.githubusercontent.com/u/13889222?v=4","gravatar_id":"","url":"https://api.github.com/users/lbryio","html_url":"https://github.com/lbryio","followers_url":"https://api.github.com/users/lbryio/followers","following_url":"https://api.github.com/users/lbryio/following{/other_user}","gists_url":"https://api.github.com/users/lbryio/gists{/gist_id}","starred_url":"https://api.github.com/users/lbryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbryio/subscriptions","organizations_url":"https://api.github.com/users/lbryio/orgs","repos_url":"https://api.github.com/users/lbryio/repos","events_url":"https://api.github.com/users/lbryio/events{/privacy}","received_events_url":"https://api.github.com/users/lbryio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lbryio/lbry-desktop","description":"A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.","fork":false,"url":"https://api.github.com/repos/lbryio/lbry-desktop","forks_url":"https://api.github.com/repos/lbryio/lbry-desktop/forks","keys_url":"https://api.github.com/repos/lbryio/lbry-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lbryio/lbry-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lbryio/lbry-desktop/teams","hooks_url":"https://api.github.com/repos/lbryio/lbry-desktop/hooks","issue_events_url":"https://api.github.com/repos/lbryio/lbry-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/lbryio/lbry-desktop/events","assignees_url":"https://api.github.com/repos/lbryio/lbry-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/lbryio/lbry-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/lbryio/lbry-desktop/tags","blobs_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lbryio/lbry-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/lbryio/lbry-desktop/languages","stargazers_url":"https://api.github.com/repos/lbryio/lbry-desktop/stargazers","contributors_url":"https://api.github.com/repos/lbryio/lbry-desktop/contributors","subscribers_url":"https://api.github.com/repos/lbryio/lbry-desktop/subscribers","subscription_url":"https://api.github.com/repos/lbryio/lbry-desktop/subscription","commits_url":"https://api.github.com/repos/lbryio/lbry-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/lbryio/lbry-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/lbryio/lbry-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/lbryio/lbry-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/lbryio/lbry-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lbryio/lbry-desktop/merges","archive_url":"https://api.github.com/repos/lbryio/lbry-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lbryio/lbry-desktop/downloads","issues_url":"https://api.github.com/repos/lbryio/lbry-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/lbryio/lbry-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/lbryio/lbry-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/lbryio/lbry-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lbryio/lbry-desktop/labels{/name}","releases_url":"https://api.github.com/repos/lbryio/lbry-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/lbryio/lbry-desktop/deployments","created_at":"2017-01-16T19:05:32Z","updated_at":"2020-01-08T11:31:31Z","pushed_at":"2020-01-08T05:04:52Z","git_url":"git://github.com/lbryio/lbry-desktop.git","ssh_url":"git@github.com:lbryio/lbry-desktop.git","clone_url":"https://github.com/lbryio/lbry-desktop.git","svn_url":"https://github.com/lbryio/lbry-desktop","homepage":"https://lbry.com","size":37777,"stargazers_count":689,"watchers_count":689,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":263,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":358,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":263,"open_issues":358,"watchers":689,"default_branch":"master"}},"base":{"label":"lbryio:master","ref":"master","sha":"e8e3f50cfb9790cc1440905f2d6aca41cc696774","user":{"login":"lbryio","id":13889222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODg5MjIy","avatar_url":"https://avatars3.githubusercontent.com/u/13889222?v=4","gravatar_id":"","url":"https://api.github.com/users/lbryio","html_url":"https://github.com/lbryio","followers_url":"https://api.github.com/users/lbryio/followers","following_url":"https://api.github.com/users/lbryio/following{/other_user}","gists_url":"https://api.github.com/users/lbryio/gists{/gist_id}","starred_url":"https://api.github.com/users/lbryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbryio/subscriptions","organizations_url":"https://api.github.com/users/lbryio/orgs","repos_url":"https://api.github.com/users/lbryio/repos","events_url":"https://api.github.com/users/lbryio/events{/privacy}","received_events_url":"https://api.github.com/users/lbryio/received_events","type":"Organization","site_admin":false},"repo":{"id":79149882,"node_id":"MDEwOlJlcG9zaXRvcnk3OTE0OTg4Mg==","name":"lbry-desktop","full_name":"lbryio/lbry-desktop","private":false,"owner":{"login":"lbryio","id":13889222,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzODg5MjIy","avatar_url":"https://avatars3.githubusercontent.com/u/13889222?v=4","gravatar_id":"","url":"https://api.github.com/users/lbryio","html_url":"https://github.com/lbryio","followers_url":"https://api.github.com/users/lbryio/followers","following_url":"https://api.github.com/users/lbryio/following{/other_user}","gists_url":"https://api.github.com/users/lbryio/gists{/gist_id}","starred_url":"https://api.github.com/users/lbryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbryio/subscriptions","organizations_url":"https://api.github.com/users/lbryio/orgs","repos_url":"https://api.github.com/users/lbryio/repos","events_url":"https://api.github.com/users/lbryio/events{/privacy}","received_events_url":"https://api.github.com/users/lbryio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/lbryio/lbry-desktop","description":"A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.","fork":false,"url":"https://api.github.com/repos/lbryio/lbry-desktop","forks_url":"https://api.github.com/repos/lbryio/lbry-desktop/forks","keys_url":"https://api.github.com/repos/lbryio/lbry-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lbryio/lbry-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lbryio/lbry-desktop/teams","hooks_url":"https://api.github.com/repos/lbryio/lbry-desktop/hooks","issue_events_url":"https://api.github.com/repos/lbryio/lbry-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/lbryio/lbry-desktop/events","assignees_url":"https://api.github.com/repos/lbryio/lbry-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/lbryio/lbry-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/lbryio/lbry-desktop/tags","blobs_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lbryio/lbry-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/lbryio/lbry-desktop/languages","stargazers_url":"https://api.github.com/repos/lbryio/lbry-desktop/stargazers","contributors_url":"https://api.github.com/repos/lbryio/lbry-desktop/contributors","subscribers_url":"https://api.github.com/repos/lbryio/lbry-desktop/subscribers","subscription_url":"https://api.github.com/repos/lbryio/lbry-desktop/subscription","commits_url":"https://api.github.com/repos/lbryio/lbry-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/lbryio/lbry-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/lbryio/lbry-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/lbryio/lbry-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/lbryio/lbry-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/lbryio/lbry-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lbryio/lbry-desktop/merges","archive_url":"https://api.github.com/repos/lbryio/lbry-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lbryio/lbry-desktop/downloads","issues_url":"https://api.github.com/repos/lbryio/lbry-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/lbryio/lbry-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/lbryio/lbry-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/lbryio/lbry-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lbryio/lbry-desktop/labels{/name}","releases_url":"https://api.github.com/repos/lbryio/lbry-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/lbryio/lbry-desktop/deployments","created_at":"2017-01-16T19:05:32Z","updated_at":"2020-01-08T11:31:31Z","pushed_at":"2020-01-08T05:04:52Z","git_url":"git://github.com/lbryio/lbry-desktop.git","ssh_url":"git@github.com:lbryio/lbry-desktop.git","clone_url":"https://github.com/lbryio/lbry-desktop.git","svn_url":"https://github.com/lbryio/lbry-desktop","homepage":"https://lbry.com","size":37777,"stargazers_count":689,"watchers_count":689,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":263,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":358,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":263,"open_issues":358,"watchers":689,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/3457"},"html":{"href":"https://github.com/lbryio/lbry-desktop/pull/3457"},"issue":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/issues/3457"},"comments":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/issues/3457/comments"},"review_comments":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/3457/comments"},"review_comment":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/pulls/3457/commits"},"statuses":{"href":"https://api.github.com/repos/lbryio/lbry-desktop/statuses/487345edc715a4be3e6e41f6279da4e900a63e5e"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"kauffj"}}