fix function signature for trimHistory RPC

This commit is contained in:
ansuz
2020-02-05 11:53:47 -05:00
parent 49b082c032
commit 5808c534b5
2 changed files with 10 additions and 6 deletions

View File

@@ -118,6 +118,7 @@ const AUTHENTICATED_USER_TARGETED = {
UNPIN: Pinning.unpinChannel,
CLEAR_OWNED_CHANNEL: Channel.clearOwnedChannel,
REMOVE_OWNED_CHANNEL: Channel.removeOwnedChannel,
TRIM_HISTORY: Channel.trimHistory,
UPLOAD_STATUS: Upload.status,
UPLOAD: Upload.upload,
UPLOAD_COMPLETE: Upload.complete,
@@ -166,11 +167,6 @@ var handleAuthenticatedMessage = function (Env, map) {
switch (msg[0]) {
case 'COOKIE': return void Respond(void 0);
case 'TRIM_OWNED_CHANNEL_HISTORY':
return void Channel.removeOwnedChannelHistory(Env, msg[1], publicKey, msg[2], function (e) { // XXX USER_TARGETED_DOUBLE
if (e) { return void Respond(e); }
Respond(void 0, 'OK');
});
case 'WRITE_LOGIN_BLOCK':
return void Block.writeLoginBlock(Env, msg[1], function (e) { // XXX SPECIAL
if (e) {