From 450c920b843e2d08c9795c9a18e3f4ae51166cad Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 13 Sep 2019 17:25:51 +0200 Subject: [PATCH] Don't try to get files metadata --- www/common/cryptpad-common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index eac836a5f..c672ee8b1 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -693,6 +693,7 @@ define([ var secret = Hash.getSecrets(parsed.type, parsed.hash, data.password); if (!secret || !secret.channel) { return void cb ({error: 'EINVAL'}); } Nthen(function (waitFor) { + if (parsed.hashData.type !== 'pad') { return; } // Set the correct owner and expiration time if we can find them postMessage('GET_PAD_METADATA', { channel: secret.channel