correcting fromSockets property to be isFromSockets

This commit is contained in:
Dave 2021-03-16 19:46:52 +00:00
parent 6ad1df5a35
commit 8b4f09a2c4
1 changed files with 4 additions and 4 deletions

View File

@ -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
});
}