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

@@ -291,13 +291,12 @@ define([
UI.confirm(Messages.contacts_confirmRemoveHistory, function (yes) {
if (!yes) { return; }
sframeChan.query('Q_CLEAR_OWNED_CHANNEL', id, function (e) {
execCommand('CLEAR_OWNED_CHANNEL', id, function (e) {
if (e) {
console.error(e);
UI.alert(Messages.contacts_removeHistoryServerError);
return;
}
clearChannel(id);
});
});
});