From 3283b3a60738b9070b60f617660e72912002a61c Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Wed, 27 May 2020 23:22:08 +0100 Subject: [PATCH] fix channel links on history page --- app/src/main/java/io/lbry/browser/model/Claim.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/lbry/browser/model/Claim.java b/app/src/main/java/io/lbry/browser/model/Claim.java index 31e8b5f..640b30a 100644 --- a/app/src/main/java/io/lbry/browser/model/Claim.java +++ b/app/src/main/java/io/lbry/browser/model/Claim.java @@ -289,6 +289,9 @@ public class Claim { Claim signingChannel = new Claim(); signingChannel.setClaimId(viewHistory.getPublisherClaimId()); signingChannel.setName(viewHistory.getPublisherName()); + + LbryUri channelUrl = LbryUri.tryParse(String.format("%s#%s", signingChannel.getName(), signingChannel.getClaimId())); + signingChannel.setPermanentUrl(channelUrl != null ? channelUrl.toString() : null); if (!Helper.isNullOrEmpty(viewHistory.getPublisherTitle())) { GenericMetadata channelValue = new GenericMetadata(); channelValue.setTitle(viewHistory.getPublisherTitle());