From 182d684fc48e930a5ff7de7f0f85b008aa89e88f Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 17 Dec 2020 11:57:53 +0100 Subject: [PATCH 1/3] Add a command to fix roster rights --- www/common/cryptpad-common.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 46f569a3e..1a65fa551 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -148,6 +148,22 @@ define([ }; 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 () { var bypassHashChange = function (key) { From 74230955ea4c9e9c595510758737115d66cbad1f Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 17 Dec 2020 12:31:06 +0100 Subject: [PATCH 2/3] Fix shared folders not reconnecting --- www/common/proxy-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/proxy-manager.js b/www/common/proxy-manager.js index 74bfcd890..1c917939a 100644 --- a/www/common/proxy-manager.js +++ b/www/common/proxy-manager.js @@ -45,7 +45,7 @@ define([ Env.folders[id].offline = true; }); proxy.on('reconnect', function () { - Env.folders[id].online = true; + Env.folders[id].offline = false; }); } return userObject; From e56083c809311acf3b63345c49a4eb24e63391aa Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 17 Dec 2020 13:11:56 +0100 Subject: [PATCH 3/3] Fix button style in login page --- customize.dist/src/less2/pages/page-login.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/customize.dist/src/less2/pages/page-login.less b/customize.dist/src/less2/pages/page-login.less index e4b3e96e0..61d1f18c1 100644 --- a/customize.dist/src/less2/pages/page-login.less +++ b/customize.dist/src/less2/pages/page-login.less @@ -2,10 +2,12 @@ @import (reference) "../include/colortheme-all.less"; @import (reference) "../include/alertify.less"; @import (reference) "../include/checkmark.less"; +@import (reference) "../include/forms.less"; &.cp-page-login { .infopages_main(); .alertify_main(); + .forms_main(); .checkmark_main(20px); .form-group {