From ba5fa063067ebe73d38ccde494dfeedca9865182 Mon Sep 17 00:00:00 2001 From: kharhamel Date: Fri, 3 Sep 2021 15:16:21 +0200 Subject: [PATCH] FIX: fixed a circular dependancy in stores by rewriting createPeerStore() and createScreenSharingPeerStore() --- .../Video/PresentationLayout.svelte | 4 +- front/src/Phaser/Game/GameScene.ts | 17 ----- front/src/Stores/AudioManagerStore.ts | 5 ++ front/src/Stores/MediaStore.ts | 2 +- front/src/Stores/PeerStore.ts | 75 ++++++++----------- front/src/Stores/ScreenSharingStore.ts | 1 + front/src/Stores/VideoFocusStore.ts | 34 +++------ front/src/WebRtc/SimplePeer.ts | 35 +++------ front/src/WebRtc/VideoPeer.ts | 4 +- 9 files changed, 63 insertions(+), 114 deletions(-) diff --git a/front/src/Components/Video/PresentationLayout.svelte b/front/src/Components/Video/PresentationLayout.svelte index f68dd2f1..65a229f4 100644 --- a/front/src/Components/Video/PresentationLayout.svelte +++ b/front/src/Components/Video/PresentationLayout.svelte @@ -12,7 +12,9 @@
{#if $videoFocusStore } - + {#key $videoFocusStore.uniqueId} + + {/key} {/if}