repair broken 'clear channel' button

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

No files matched your search

+2 -1
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);