From ea37166dc2bdc248f6013a94018f89ea8784f871 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 30 Aug 2019 12:00:49 +0200 Subject: [PATCH] Update the index metadata cache --- historyKeeper.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/historyKeeper.js b/historyKeeper.js index 6027fc3fe..10137dd06 100644 --- a/historyKeeper.js +++ b/historyKeeper.js @@ -717,6 +717,9 @@ module.exports.create = function (cfg) { if (channel && metadata_cache[channel] && typeof (metadata) === "object") { Log.silly('SET_METADATA_CACHE', 'Channel '+ channel +', metadata: '+ JSON.stringify(metadata)); metadata_cache[channel] = metadata; + if (ctx.channels[channel] && ctx.channels[channel].index) { + ctx.channels[channel].index.metadata = metadata; + } historyKeeperBroadcast(ctx, channel, metadata); } };