Merge branch 'inviteUI' of github.com:xwiki-labs/cryptpad into inviteUI

This commit is contained in:
ansuz
2019-12-18 12:02:52 -05:00
23 changed files with 604 additions and 200 deletions

View File

@@ -451,7 +451,6 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto) {
// copy the new profile from the old one
members[curve] = Util.clone(members[author]);
members[curve].curvePublic = curve;
// and erase the old one
delete members[author];
return true;
@@ -776,7 +775,6 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto) {
Object.keys(data).forEach(function (curve) {
if (!isValidId(curve) || isMap(ref.state.members[curve])) { return delete data[curve]; }
});
console.error('SENDING INVITE');
send(['INVITE', data], cb);
};