fix history trim for channels with access lists

pull/1/head
ansuz 4 years ago
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…
Cancel
Save