Ability to remove owned channels from the drive

This commit is contained in:
yflory
2018-01-29 15:17:53 +01:00
parent 1c39e8b1bb
commit bdafc101c9
8 changed files with 31 additions and 10 deletions

View File

@@ -97,7 +97,9 @@ define([
var channelId = fd && fd.href && Hash.hrefToHexChannelId(fd.href);
// If trying to remove an owned pad, remove it from server also
if (fd.owners && fd.owners.indexOf(edPublic) !== -1 && channelId) {
removeOwnedChannel(channelId);
removeOwnedChannel(channelId, function (obj) {
if (obj && obj.error) { console.error(obj.error); }
});
}
if (channelId) { toClean.push(channelId); }
spliceFileData(id);