mirror of https://github.com/xwiki-labs/cryptpad
fix history trim for channels with access lists
This commit is contained in:
parent
d509fd8b8f
commit
fcfcb3dca6
|
@ -159,7 +159,7 @@ Channel.trimHistory = function (Env, safeKey, data, cb) {
|
|||
var hash = data.hash;
|
||||
|
||||
nThen(function (w) {
|
||||
Metadata.getMetadata(Env, channelId, w(function (err, metadata) {
|
||||
Metadata.getMetadataRaw(Env, channelId, w(function (err, metadata) {
|
||||
if (err) { return void cb(err); }
|
||||
if (!Core.hasOwners(metadata)) {
|
||||
w.abort();
|
||||
|
|
Loading…
Reference in New Issue