Store latest metadata when loading a team

pull/1/head
yflory 5 years ago
parent 851f6db7fb
commit b3041bd59a

@ -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) {

Loading…
Cancel
Save