use userChannelList if a list is not supplied to pinpad

pull/1/head
ansuz 8 years ago
parent e8c3cf6aa5
commit c9c9dd0999

@ -12,7 +12,8 @@ define([
var rpc = Rpc.create(network, ed);
var checkHash = exp.checkHash = function (fileList) {
//var fileList = fo.getFilesDataFiles();
fileList = fileList || Cryptpad.getUserChannelList();
var channelIdList = [];
fileList.forEach(function (href) {
var parsedHref = Cryptpad.parsePadUrl(href);
@ -31,12 +32,10 @@ define([
AWESOME
if they are not
UNPIN all, send all
*/
var hash = Nacl.util.encodeBase64(Nacl.hash(Nacl.util.decodeUTF8( JSON.stringify(uniqueList) )));
console.log(hash);
return hash;
};

Loading…
Cancel
Save