repair broken 'clear channel' button

This commit is contained in:
ansuz
2017-11-21 17:19:35 +01:00
parent 2ff1a17ade
commit 585f9d2e4e
5 changed files with 23 additions and 1 deletions

View File

@@ -176,7 +176,8 @@ define([
$(removeHistory).click(function () {
UI.confirm(Messages.contacts_confirmRemoveHistory, function (yes) {
if (!yes) { return; }
Cryptpad.clearOwnedChannel(data.channel, function (e) {
messenger.clearOwnedChannel(data.channel, function (e) {
if (e) {
console.error(e);
UI.alert(Messages.contacts_removeHistoryServerError);