From a9f84021108fb4eeaad929bd1dfaca3ebb8fbda1 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 4 Feb 2020 11:04:52 +0100 Subject: [PATCH] Fix clear history in contacts --- www/common/outer/messenger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/outer/messenger.js b/www/common/outer/messenger.js index 4d5e42973..6587d9e4d 100644 --- a/www/common/outer/messenger.js +++ b/www/common/outer/messenger.js @@ -893,7 +893,7 @@ define([ }; var clearOwnedChannel = function (ctx, id, cb) { - var channel = ctx.clients[id]; + var channel = ctx.channels[id]; if (!channel) { return void cb({error: 'NO_CHANNEL'}); } if (!ctx.store.rpc) { return void cb({error: 'RPC_NOT_READY'}); } ctx.store.rpc.clearOwnedChannel(id, function (err) {