From 4605b13bcd951bba85c2e4e91622450759dad27c Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Sat, 27 Oct 2018 06:31:16 +0000 Subject: [PATCH] Allow spawning of any chat messages --- src/hub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hub.js b/src/hub.js index ebf36bed8..ef6e6eb9d 100644 --- a/src/hub.js +++ b/src/hub.js @@ -465,7 +465,7 @@ document.addEventListener("DOMContentLoaded", async () => { hubPhxChannel.on("message", ({ session_id, type, body }) => { const userInfo = hubPhxPresence.state[session_id]; if (!userInfo) return; - const maySpawn = session_id === socket.params().session_id && scene.is("entered"); + const maySpawn = scene.is("entered"); addToPresenceLog({ name: userInfo.metas[0].profile.displayName, type, body, maySpawn }); }); -- GitLab