Skip to content

Commit

Permalink
Passing file id in order to set inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
Stalgia Grigg committed Jun 2, 2023
1 parent aaa9df3 commit 39d3b83
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/entity-state-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ export async function deleteEntityState(hubChannel: HubChannel, world: HubsWorld
const payload: DeleteEntityStatePayload = {
nid: APP.getString(Networked.id[eid])! as NetworkID
};
const {
initialData: { fileId }
} = createMessageDatas.get(eid)!;
if (fileId) {
payload.file_id = fileId;
}
// console.log("delete_entity_state", payload);
return push(hubChannel, "delete_entity_state", payload);
}
Expand Down

0 comments on commit 39d3b83

Please sign in to comment.