Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
This commit is contained in:
@@ -3,8 +3,9 @@ define([
|
|||||||
'/common/common-util.js',
|
'/common/common-util.js',
|
||||||
'/common/common-hash.js',
|
'/common/common-hash.js',
|
||||||
'/common/common-realtime.js',
|
'/common/common-realtime.js',
|
||||||
|
'/common/common-feedback.js',
|
||||||
'/customize/messages.js'
|
'/customize/messages.js'
|
||||||
], function (AppConfig, Util, Hash, Realtime, Messages) {
|
], function (AppConfig, Util, Hash, Realtime, Feedback, Messages) {
|
||||||
var module = {};
|
var module = {};
|
||||||
|
|
||||||
var clone = function (o) {
|
var clone = function (o) {
|
||||||
@@ -102,7 +103,12 @@ define([
|
|||||||
if (!isOwnPadRemoved &&
|
if (!isOwnPadRemoved &&
|
||||||
fd.owners && fd.owners.indexOf(edPublic) !== -1 && channelId) {
|
fd.owners && fd.owners.indexOf(edPublic) !== -1 && channelId) {
|
||||||
removeOwnedChannel(channelId, function (obj) {
|
removeOwnedChannel(channelId, function (obj) {
|
||||||
if (obj && obj.error) { console.error(obj.error); }
|
if (obj && obj.error) {
|
||||||
|
console.error(obj.error);
|
||||||
|
// RPC may not be responding
|
||||||
|
// Send a report that can be handled manually
|
||||||
|
Feedback.send('ERROR_DELETING_OWNED_PAD=' + channelId, true);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (channelId) { toClean.push(channelId); }
|
if (channelId) { toClean.push(channelId); }
|
||||||
|
|||||||
@@ -217,6 +217,15 @@ types of messages:
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (network.onHistoryKeeperChange) {
|
||||||
|
network.onHistoryKeeperChange(function () {
|
||||||
|
send('COOKIE', "", function (e) {
|
||||||
|
if (e) { return void cb(e); }
|
||||||
|
ctx.connected = true;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
send('COOKIE', "", function (e) {
|
send('COOKIE', "", function (e) {
|
||||||
if (e) { return void cb(e); }
|
if (e) { return void cb(e); }
|
||||||
// callback to provide 'send' method to whatever needs it
|
// callback to provide 'send' method to whatever needs it
|
||||||
|
|||||||
Reference in New Issue
Block a user