Skip to content

Commit

Permalink
Fix decodeMapEntry call was not awaited in StateMessage.decode call
Browse files Browse the repository at this point in the history
  • Loading branch information
VeskeR committed Oct 22, 2024
1 parent c3a15ac commit fbf9d42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/liveobjects/statemessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit fbf9d42

Please sign in to comment.