From 277a38c61083b16e1be4c5eb31a118ab4de257a9 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 12 Apr 2021 17:50:30 +0530 Subject: [PATCH] explain why 'newTeam' option overrides lastKnownHash in roster --- www/common/outer/roster.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/common/outer/roster.js b/www/common/outer/roster.js index 8e8e82dc8..e395891b7 100644 --- a/www/common/outer/roster.js +++ b/www/common/outer/roster.js @@ -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; }