Join a team from a link

This commit is contained in:
yflory
2019-12-18 11:35:39 +01:00
parent 3d1b3b5d18
commit 400b39d46a
4 changed files with 58 additions and 10 deletions

View File

@@ -451,6 +451,7 @@ 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;