From 4fd490f07f2e4095fcb38e8ddce4888106018e12 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 12 Jun 2019 16:35:08 +0200 Subject: [PATCH] leave some notes for later --- rpc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpc.js b/rpc.js index adc869432..19d482368 100644 --- a/rpc.js +++ b/rpc.js @@ -814,6 +814,7 @@ var clearOwnedChannel = function (Env, channelId, unsafeKey, cb) { return void cb('INSUFFICIENT_PERMISSIONS'); } + // FIXME COLDSTORAGE return void Env.msgStore.clearChannel(channelId, function (e) { cb(e); }); @@ -900,6 +901,10 @@ var removeOwnedChannel = function (Env, channelId, unsafeKey, cb) { if (metadata.owners.indexOf(unsafeKey) === -1) { return void cb('INSUFFICIENT_PERMISSIONS'); } + + // FIXME COLDSTORAGE + // XXX check if 'config.retainData' is set to true + // if so, use msgStore.archiveChannel instead return void Env.msgStore.removeChannel(channelId, function (e) { Log.info('DELETION_CHANNEL_BY_OWNER_RPC', { unsafeKey: unsafeKey, @@ -1430,6 +1435,7 @@ var removeLoginBlock = function (Env, msg, cb) { return void cb('E_INVALID_BLOCK_PATH'); } + // FIXME COLDSTORAGE Fs.unlink(path, function (err) { Log.info('DELETION_BLOCK_BY_OWNER_RPC', { publicKey: publicKey,