fix history trim for channels with access lists

This commit is contained in:
ansuz 2020-10-07 18:43:51 +05:30
parent d509fd8b8f
commit fcfcb3dca6
1 changed files with 1 additions and 1 deletions

View File

@ -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();