diff --git a/www/common/outer/team.js b/www/common/outer/team.js index 9d169152a..9ffcae1fa 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -155,6 +155,10 @@ define([ ctx.updateMetadata(); ctx.emit('ROSTER_CHANGE', id, team.clients); }); + roster.on('checkpoint', function (hash) { + var rosterData = Util.find(ctx, ['store', 'proxy', 'teams', id, 'keys', 'roster']); + rosterData.lastKnownHash = hash; + }); team.sendEvent = function (q, data, sender) { @@ -327,6 +331,8 @@ define([ } roster = _roster; + // XXX update our roster last known hash if a checkpoint was sent in the history + // If we've been kicked, don't try to update our data, we'll close everything // in the next nThen part var state = roster.getState();