From b3041bd59a1f40b5025b03a67bdcb60fb0b5fabf Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 23 Sep 2019 17:56:16 +0200 Subject: [PATCH] Store latest metadata when loading a team --- www/common/outer/team.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/outer/team.js b/www/common/outer/team.js index db150bf04..32cb1e617 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -165,6 +165,9 @@ define([ rosterData.lastKnownHash = hash; }); + var state = roster.getState(); + var teamData = Util.find(ctx, ['store', 'proxy', 'teams', id]); + if (teamData) { teamData.metadata = state.metadata; } team.sendEvent = function (q, data, sender) { ctx.emit(q, data, team.clients.filter(function (cId) {