From 07a6de4dab11278f2b8db1c3b677fde144bea388 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 30 Sep 2020 15:17:24 +0200 Subject: [PATCH] Preserve realtime userlist when restoring history --- www/common/sframe-common-history.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/sframe-common-history.js b/www/common/sframe-common-history.js index 45411726f..f2f254336 100644 --- a/www/common/sframe-common-history.js +++ b/www/common/sframe-common-history.js @@ -247,8 +247,10 @@ define([ var metadataMgr = common.getMetadataMgr(); var lastMd = config.getLastMetadata(); var _snapshots = lastMd.snapshots; + var _users = lastMd.users; var md = Util.clone(metadataMgr.getMetadata()); md.snapshots = _snapshots; + md.users = _users; metadataMgr.updateMetadata(md); } @@ -323,7 +325,7 @@ define([ var idx = getIndex(i); if (semantic && i !== c) { - // If semantic is truc, jump to the next patch from a different netflux ID + // If semantic is true, jump to the next patch from a different netflux ID var author = getAuthor(idx, semantic); var forward = i > c; for (var j = idx; (j > 0 && j < states.length ); (forward ? j++ : j--)) {