add history removal

This commit is contained in:
ansuz
2017-07-20 15:55:04 +02:00
parent e26e041a5b
commit b22127f10c
4 changed files with 35 additions and 12 deletions

View File

@@ -142,7 +142,11 @@ define([
}
rpc.send('CLEAR_OWNED_CHANNEL', channel, function (e, response) {
if (e) { return cb(e); }
cb(response);
if (response && response.length) {
cb(void 0, response[0]);
} else {
cb();
}
});
};