mirror of https://github.com/bra1n/townsquare.git
correcting fromSockets property to be isFromSockets
This commit is contained in:
parent
6ad1df5a35
commit
8b4f09a2c4
|
@ -489,13 +489,13 @@ class LiveSession {
|
||||||
* Publish a player pronouns update
|
* Publish a player pronouns update
|
||||||
* @param player
|
* @param player
|
||||||
* @param value
|
* @param value
|
||||||
* @param fromSockets
|
* @param isFromSockets
|
||||||
*/
|
*/
|
||||||
sendPlayerPronouns({ player, value, fromSockets }) {
|
sendPlayerPronouns({ player, value, isFromSockets }) {
|
||||||
//send pronoun only for the seated player or storyteller
|
//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
|
//Do not re-send pronoun data for an update that was recieved from the sockets layer
|
||||||
if (
|
if (
|
||||||
fromSockets ||
|
isFromSockets ||
|
||||||
(this._isSpectator && this._store.state.session.playerId !== player.id)
|
(this._isSpectator && this._store.state.session.playerId !== player.id)
|
||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
|
@ -516,7 +516,7 @@ class LiveSession {
|
||||||
player,
|
player,
|
||||||
property: "pronouns",
|
property: "pronouns",
|
||||||
value,
|
value,
|
||||||
fromSockets: true
|
isFromSockets: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue