Add a command to fix roster rights

pull/1/head
yflory 4 years ago
parent b8780d468b
commit 182d684fc4

@ -148,6 +148,22 @@ define([
}; };
send(); send();
}; };
common.fixRosterHash = function () {
// Push teams keys
postMessage("GET", {
key: ['teams'],
}, function (obj) {
if (obj.error) { return console.error(obj.error); }
Object.keys(obj || {}).forEach(function (id) {
postMessage("SET", {
key: ['teams', id, 'keys', 'roster', 'lastKnownHash'],
value: ''
}, function () {
console.log('done, please close all your CryptPad tabs before testing the fix');
});
});
});
};
(function () { (function () {
var bypassHashChange = function (key) { var bypassHashChange = function (key) {

Loading…
Cancel
Save