handle resolving vanity channel urls #328

Merged
neb-b merged 1 commit from channel-resolve-fix into master 2020-06-22 20:39:31 +02:00
2 changed files with 10 additions and 0 deletions

5
dist/bundle.es.js vendored
View file

@ -5168,6 +5168,7 @@ function handleClaimAction(state, action) {
const {
resolveInfo
} = action.data;
const byUri = Object.assign({}, state.claimsByUri);
const byId = Object.assign({}, state.byId);
const channelClaimCounts = Object.assign({}, state.channelClaimCounts);
@ -5196,6 +5197,10 @@ function handleClaimAction(state, action) {
}
if (channel && channel.claim_id) {
if (!stream) {
byUri[url] = channel.claim_id;
}
if (claimsInChannel) {
channelClaimCounts[url] = claimsInChannel;
channelClaimCounts[channel.canonical_url] = claimsInChannel;

View file

@ -109,6 +109,7 @@ function handleClaimAction(state: State, action: any): State {
claimsInChannel: ?number,
},
} = action.data;
const byUri = Object.assign({}, state.claimsByUri);
const byId = Object.assign({}, state.byId);
const channelClaimCounts = Object.assign({}, state.channelClaimCounts);
@ -137,6 +138,10 @@ function handleClaimAction(state: State, action: any): State {
}
if (channel && channel.claim_id) {
if (!stream) {
byUri[url] = channel.claim_id;
}
if (claimsInChannel) {
channelClaimCounts[url] = claimsInChannel;
channelClaimCounts[channel.canonical_url] = claimsInChannel;