Fix bug chat history not deleted

This commit is contained in:
ClemDee
2019-06-07 15:43:24 +02:00
parent e52acda334
commit f6cc3aa8c3
3 changed files with 16 additions and 8 deletions

View File

@@ -152,13 +152,9 @@ define([
if (typeof(channel) !== 'string' || channel.length !== 32) {
return void cb('INVALID_ARGUMENTS');
}
rpc.send('CLEAR_OWNED_CHANNEL', channel, function (e, response) {
rpc.send('CLEAR_OWNED_CHANNEL', channel, function (e) {
if (e) { return cb(e); }
if (response && response.length) {
cb(void 0, response[0]);
} else {
cb('INVALID_RESPONSE');
}
cb();
});
};