explain why 'newTeam' option overrides lastKnownHash in roster
parent
3cf87fa940
commit
277a38c610
|
@ -503,7 +503,8 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto, Feedback)
|
|||
var channel = config.channel;
|
||||
var lastKnownHash = config.lastKnownHash || -1;
|
||||
|
||||
if (config.newTeam) { // XXX
|
||||
// make sure we don't send -1 (ask for full history) when we are trying to create a new team
|
||||
if (config.newTeam) {
|
||||
lastKnownHash = undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue