Remove owned file

This commit is contained in:
yflory
2018-05-30 14:36:29 +02:00
parent 93ecc06964
commit 85e5c495d9
4 changed files with 81 additions and 22 deletions

View File

@@ -151,7 +151,7 @@ define([
};
exp.removeOwnedChannel = function (channel, cb) {
if (typeof(channel) !== 'string' || channel.length !== 32) {
if (typeof(channel) !== 'string' || [32,48].indexOf(channel.length) === -1) {
// can't use this on files because files can't be owned...
return void cb('INVALID_ARGUMENTS');
}