explain why 'newTeam' option overrides lastKnownHash in roster

This commit is contained in:
ansuz 2021-04-12 17:50:30 +05:30
parent 3cf87fa940
commit 277a38c610
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}