From 8b4f09a2c45e473359be75c9950b39cfcca07a9f Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 16 Mar 2021 19:46:52 +0000 Subject: [PATCH] correcting fromSockets property to be isFromSockets --- src/store/socket.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/socket.js b/src/store/socket.js index 3f9adbb..326bb8d 100644 --- a/src/store/socket.js +++ b/src/store/socket.js @@ -489,13 +489,13 @@ class LiveSession { * Publish a player pronouns update * @param player * @param value - * @param fromSockets + * @param isFromSockets */ - sendPlayerPronouns({ player, value, fromSockets }) { + sendPlayerPronouns({ player, value, isFromSockets }) { //send pronoun only for the seated player or storyteller //Do not re-send pronoun data for an update that was recieved from the sockets layer if ( - fromSockets || + isFromSockets || (this._isSpectator && this._store.state.session.playerId !== player.id) ) return; @@ -516,7 +516,7 @@ class LiveSession { player, property: "pronouns", value, - fromSockets: true + isFromSockets: true }); }