From 69f2523a611b4d6dcffdd48336dae44b0c0af4ca Mon Sep 17 00:00:00 2001 From: ShiKhu Date: Thu, 13 May 2021 14:20:08 +0200 Subject: [PATCH] fix (frontend): messages parce loop recovered --- .../player/MessageDistributor/MessageDistributor.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/app/player/MessageDistributor/MessageDistributor.js b/frontend/app/player/MessageDistributor/MessageDistributor.js index ebdd423ce..fa3641b7a 100644 --- a/frontend/app/player/MessageDistributor/MessageDistributor.js +++ b/frontend/app/player/MessageDistributor/MessageDistributor.js @@ -164,6 +164,16 @@ export default class MessageDistributor extends StatedScreen { let mCount = 0; const msgs = []; + while (mGen.hasNext()) { + mCount++; + const next = mGen.next(); + if (next != null) { + this.#lastMessageTime = next[0].time; + this.#distributeMessage(next[0], next[1]); + msgs.push(next[0]); + } + } + // Hack for upet (TODO: fix ordering in one mutation (removes first)) const headChildrenIds = msgs.filter(m => m.parentID === 1).map(m => m.id); //const createNodeTypes = ["create_text_node", "create_element_node"];