From feeb20fb5dae158b338dc9b3d721e74b7a5bb61e Mon Sep 17 00:00:00 2001 From: Nolway Date: Mon, 31 Jan 2022 11:50:07 +0100 Subject: [PATCH] Prettier fixes into video management --- front/src/Components/Video/VideoMediaBox.svelte | 7 ++++++- front/src/Stores/StreamableCollectionStore.ts | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/front/src/Components/Video/VideoMediaBox.svelte b/front/src/Components/Video/VideoMediaBox.svelte index 424a657e..e5199a37 100644 --- a/front/src/Components/Video/VideoMediaBox.svelte +++ b/front/src/Components/Video/VideoMediaBox.svelte @@ -50,7 +50,12 @@ }); -
(clickable ? highlightedEmbedScreen.toggleHighlight(embedScreen) : null)}> +
(clickable ? highlightedEmbedScreen.toggleHighlight(embedScreen) : null)} +> {#if $statusStore === "connecting"}
{/if} diff --git a/front/src/Stores/StreamableCollectionStore.ts b/front/src/Stores/StreamableCollectionStore.ts index 4b38d272..e88b1de0 100644 --- a/front/src/Stores/StreamableCollectionStore.ts +++ b/front/src/Stores/StreamableCollectionStore.ts @@ -26,9 +26,9 @@ function createStreamableCollectionStore(): Readable> { addPeer($screenSharingLocalMedia); } - const $highlightedEmbedScreen = get(highlightedEmbedScreen); + const $highlightedEmbedScreen = get(highlightedEmbedScreen); - if ($highlightedEmbedScreen?.type === 'streamable' && !peers.has($highlightedEmbedScreen.embed.uniqueId)) { + if ($highlightedEmbedScreen?.type === "streamable" && !peers.has($highlightedEmbedScreen.embed.uniqueId)) { highlightedEmbedScreen.removeHighlight(); }