This commit is contained in:
yflory
2017-07-20 18:21:10 +02:00
parent 683769f30a
commit 09793e0d7d

View File

@@ -294,12 +294,12 @@ define([
title: common.Messages.contacts_removeHistoryTitle
})
.click(function () {
Cryptpad.confirm(common.Messages.contacts_confirmRemoveHistory, function (yes) {
common.confirm(common.Messages.contacts_confirmRemoveHistory, function (yes) {
if (!yes) { return; }
Cryptpad.clearOwnedChannel(data.channel, function (e) {
common.clearOwnedChannel(data.channel, function (e) {
if (e) {
console.error(e);
Cryptpad.alert(common.Messages.contacts_removeHistoryServerError);
common.alert(common.Messages.contacts_removeHistoryServerError);
return;
}
});