Fix clear history in contacts
This commit is contained in:
parent
cfa4c6e7bb
commit
a9f8402110
@ -893,7 +893,7 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
var clearOwnedChannel = function (ctx, id, cb) {
|
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 (!channel) { return void cb({error: 'NO_CHANNEL'}); }
|
||||||
if (!ctx.store.rpc) { return void cb({error: 'RPC_NOT_READY'}); }
|
if (!ctx.store.rpc) { return void cb({error: 'RPC_NOT_READY'}); }
|
||||||
ctx.store.rpc.clearOwnedChannel(id, function (err) {
|
ctx.store.rpc.clearOwnedChannel(id, function (err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user