working woka picture if no camera view is provided
This commit is contained in:
@@ -5,12 +5,13 @@ import type { RoomConnection } from "../Connexion/RoomConnection";
|
||||
* A store that contains the players avatars pictures
|
||||
*/
|
||||
function createUserWokaPictureStore() {
|
||||
let players = new Map<number, string>();
|
||||
const players = new Map<number, string>();
|
||||
|
||||
const { subscribe, update } = writable(players);
|
||||
|
||||
return {
|
||||
subscribe,
|
||||
// P.H. NOTE: Not clearing the store after reconnecting to the room - is this a problem?
|
||||
connectToRoomConnection: (roomConnection: RoomConnection) => {
|
||||
roomConnection.onUserLeft((userId) => {
|
||||
update((users) => {
|
||||
|
||||
Reference in New Issue
Block a user