diff --git a/js/GUI/Screen/Game.js b/js/GUI/Screen/Game.js index 642b185..c4c5adb 100644 --- a/js/GUI/Screen/Game.js +++ b/js/GUI/Screen/Game.js @@ -80,11 +80,13 @@ function previously(states) { function initMessageHandlers() { window.addEventListener('focus', catchUp); Messaging.addEventListener(["Game"], function(o) { - delay(handleGameMessage(o.state)); - if(document.hasFocus() && getQueue().length == 1) { - catchUp(); - } else { - StatusHandler.set("♪"); + if(o.state.public.coordinates.gameID == globalState.game.public.coordinates.gameID) { + delay(handleGameMessage(o.state)); + if(document.hasFocus() && getQueue().length == 1) { + catchUp(); + } else { + StatusHandler.set("♪"); + } } }); }