From fbf9d422195aad85b291d1f46db010a9853742e9 Mon Sep 17 00:00:00 2001 From: Andrew Bulat Date: Tue, 22 Oct 2024 10:01:32 +0100 Subject: [PATCH] Fix `decodeMapEntry` call was not awaited in `StateMessage.decode` call --- src/plugins/liveobjects/statemessage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/liveobjects/statemessage.ts b/src/plugins/liveobjects/statemessage.ts index c8063e455..858f87ea1 100644 --- a/src/plugins/liveobjects/statemessage.ts +++ b/src/plugins/liveobjects/statemessage.ts @@ -155,13 +155,13 @@ export class StateMessage { if (message.object?.map?.entries) { for (const entry of Object.values(message.object.map.entries)) { - decodeMapEntry(entry, inputContext, decodeDataFn); + await decodeMapEntry(entry, inputContext, decodeDataFn); } } if (message.operation?.map) { for (const entry of Object.values(message.operation.map)) { - decodeMapEntry(entry, inputContext, decodeDataFn); + await decodeMapEntry(entry, inputContext, decodeDataFn); } }