leave an XXX note to make sure we fix this typeError
This commit is contained in:
parent
6523974ca2
commit
3601bd6429
@ -893,6 +893,8 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
var clearOwnedChannel = function (ctx, id, cb) {
|
var clearOwnedChannel = function (ctx, id, cb) {
|
||||||
|
// XXX clients is undefined if you try to clear history from contacts
|
||||||
|
// while not using workers
|
||||||
var channel = ctx.clients[id];
|
var channel = ctx.clients[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'}); }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user