From 49ebf1605a3510598f9634f7a62228b4abc76d366248d8cb23b222143e1fafef Mon Sep 17 00:00:00 2001 From: AidarKC Date: Tue, 19 May 2026 00:42:00 +0300 Subject: [PATCH] =?UTF-8?q?fix(ui-thread):=20=D0=BA=D0=BE=D1=80=D1=80?= =?UTF-8?q?=D0=B5=D0=BA=D1=82=D0=BD=D1=8B=D0=B5=20=D0=BF=D0=BE=D0=BB=D1=8F?= =?UTF-8?q?=20channel=20=D0=B4=D0=BB=D1=8F=20GetChannelMessages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.properties | 4 ++-- shine-UI/js/pages/channel-thread-view.js | 26 +++++++++++++----------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/VERSION.properties b/VERSION.properties index d57cdaf..2d94d32 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.2.61 -server.version=1.2.55 +client.version=1.2.62 +server.version=1.2.56 diff --git a/shine-UI/js/pages/channel-thread-view.js b/shine-UI/js/pages/channel-thread-view.js index af477e1..b55b047 100644 --- a/shine-UI/js/pages/channel-thread-view.js +++ b/shine-UI/js/pages/channel-thread-view.js @@ -100,8 +100,8 @@ function parseThreadSelector(route) { }, channel: { ownerBlockchainName: '', - rootBlockNumber: null, - rootBlockHash: '0', + channelRootBlockNumber: null, + channelRootBlockHash: '0', }, }; } @@ -116,8 +116,8 @@ function parseThreadSelector(route) { }, channel: { ownerBlockchainName: String(params.channelOwnerBlockchainName || ''), - rootBlockNumber: toSafeInt(params.channelRootBlockNumber), - rootBlockHash: normalizeRouteHash(params.channelRootBlockHash), + channelRootBlockNumber: toSafeInt(params.channelRootBlockNumber), + channelRootBlockHash: normalizeRouteHash(params.channelRootBlockHash), }, }; } @@ -132,10 +132,12 @@ function allFeedSummaries() { } function resolveChannelDisplayName(channelSelector) { - if (!channelSelector?.ownerBlockchainName || channelSelector?.rootBlockNumber == null) return ''; + const rootNumber = channelSelector?.channelRootBlockNumber ?? channelSelector?.rootBlockNumber; + const rootHashRaw = channelSelector?.channelRootBlockHash ?? channelSelector?.rootBlockHash; + if (!channelSelector?.ownerBlockchainName || rootNumber == null) return ''; const ownerBch = String(channelSelector.ownerBlockchainName); - const rootNo = Number(channelSelector.rootBlockNumber); - const rootHash = normalizeRouteHash(channelSelector.rootBlockHash); + const rootNo = Number(rootNumber); + const rootHash = normalizeRouteHash(rootHashRaw); const found = allFeedSummaries().find((summary) => ( String(summary?.channel?.ownerBlockchainName || '') === ownerBch @@ -167,15 +169,15 @@ function buildThreadRouteFromTarget(target, selector) { target.blockNumber, ].join('/'); } - if (!selector?.channel?.ownerBlockchainName || selector.channel.rootBlockNumber == null) return ''; + if (!selector?.channel?.ownerBlockchainName || selector.channel.channelRootBlockNumber == null) return ''; return [ 'channel-thread-view', encodeRoutePart(target.blockchainName), target.blockNumber, normalizeRouteHash(target.blockHash), encodeRoutePart(selector.channel.ownerBlockchainName), - selector.channel.rootBlockNumber, - normalizeRouteHash(selector.channel.rootBlockHash), + selector.channel.channelRootBlockNumber, + normalizeRouteHash(selector.channel.channelRootBlockHash), ].join('/'); } @@ -641,8 +643,8 @@ export function render({ navigate, route }) { } selector.channel = { ownerBlockchainName: ownerBch, - rootBlockNumber: rootNo, - rootBlockHash: rootHash, + channelRootBlockNumber: rootNo, + channelRootBlockHash: rootHash, }; let resolvedHash = normalizeMessageHash(resolvedMessage?.blockHash);