support old hashes in getUserChannelList

pull/1/head
ansuz 8 years ago
parent 7d5ff27900
commit d422c7e165

@ -1017,6 +1017,14 @@ define([
parsed = common.parseHash(parsed.hash); parsed = common.parseHash(parsed.hash);
if (parsed.version === 0) {
return channel;
} else if (parsed.version !== 1) {
console.error("parsed href had no version");
console.error(parsed);
return;
}
var channel = parsed.channel; var channel = parsed.channel;
if (!channel) { return; } if (!channel) { return; }
@ -1024,7 +1032,7 @@ define([
return hex; return hex;
}).filter(function (x) { return x; }); }).filter(function (x) { return x; });
list.push(userChannel); list.push(common.base64ToHex(userChannel));
list.sort(); list.sort();
return list; return list;

Loading…
Cancel
Save