From c9c9dd09994fea95596ed4b63bced477def4ee4f Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 16 Mar 2017 14:46:17 +0100 Subject: [PATCH] use userChannelList if a list is not supplied to pinpad --- www/common/pinpad.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/common/pinpad.js b/www/common/pinpad.js index 300650169..dce9f328c 100644 --- a/www/common/pinpad.js +++ b/www/common/pinpad.js @@ -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; };