From 11787101eb9f78a06509ce247896d8c9c4867e0c Mon Sep 17 00:00:00 2001 From: Gagan Suie Date: Sat, 30 Sep 2023 17:30:24 -0500 Subject: [PATCH 1/2] Fix: removed released feature flags and added multistream flag --- .../icons/channel/IconMultistream.svelte | 12 ++++ .../icons/channel/IconShareAudio.svelte | 16 ++++-- src/lib/assets/icons/channel/IconUser.svelte | 9 --- .../Channel/Stream/StreamControls.svelte | 26 +++++++-- .../Channel/Stream/VideoItem.svelte | 57 +++++++++---------- .../Profile/Elements/UserDetails.svelte | 20 ++++--- src/lib/components/Profile/TabSection.svelte | 31 +++++----- .../components/Search/ItemSearchUser.svelte | 29 +++++----- src/lib/stores/remoteConfigStore.ts | 4 +- src/routes/+layout.svelte | 8 +-- 10 files changed, 115 insertions(+), 97 deletions(-) create mode 100644 src/lib/assets/icons/channel/IconMultistream.svelte delete mode 100644 src/lib/assets/icons/channel/IconUser.svelte diff --git a/src/lib/assets/icons/channel/IconMultistream.svelte b/src/lib/assets/icons/channel/IconMultistream.svelte new file mode 100644 index 00000000..78fcae67 --- /dev/null +++ b/src/lib/assets/icons/channel/IconMultistream.svelte @@ -0,0 +1,12 @@ + + + diff --git a/src/lib/assets/icons/channel/IconShareAudio.svelte b/src/lib/assets/icons/channel/IconShareAudio.svelte index dae7b8b0..db79ab75 100644 --- a/src/lib/assets/icons/channel/IconShareAudio.svelte +++ b/src/lib/assets/icons/channel/IconShareAudio.svelte @@ -1,4 +1,12 @@ - - - - \ No newline at end of file + + + diff --git a/src/lib/assets/icons/channel/IconUser.svelte b/src/lib/assets/icons/channel/IconUser.svelte deleted file mode 100644 index c7cf133c..00000000 --- a/src/lib/assets/icons/channel/IconUser.svelte +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/src/lib/components/Channel/Stream/StreamControls.svelte b/src/lib/components/Channel/Stream/StreamControls.svelte index 6e343289..de5811d6 100644 --- a/src/lib/components/Channel/Stream/StreamControls.svelte +++ b/src/lib/components/Channel/Stream/StreamControls.svelte @@ -21,7 +21,8 @@ import { channel_connection } from '$lib/stores/websocketStore' import { onDestroy, onMount } from 'svelte' import IconShareObs from '$lib/assets/icons/channel/IconShareObs.svelte' - import { is_feature_obs_enabled } from '$lib/stores/remoteConfigStore' + import { is_feature_multistream_enabled } from '$lib/stores/remoteConfigStore' + import IconMultistream from '$lib/assets/icons/channel/IconMultistream.svelte' export let isHostOrGuest: boolean = false, channel: any, @@ -354,12 +355,29 @@ - {#if $is_feature_obs_enabled} + + + {#if $is_feature_multistream_enabled} {/if} diff --git a/src/lib/components/Channel/Stream/VideoItem.svelte b/src/lib/components/Channel/Stream/VideoItem.svelte index 4983a6bf..56242a53 100644 --- a/src/lib/components/Channel/Stream/VideoItem.svelte +++ b/src/lib/components/Channel/Stream/VideoItem.svelte @@ -15,7 +15,6 @@ import { emitChannelUpdate } from '$lib/websocket' import { captureScreenShot, dataURLtoFile, getColoredRole, setRole } from '$lib/utils' import IconChatBan from '$lib/assets/icons/chat/IconChatBan.svelte' - import { is_feature_stats_enabled, is_feature_obs_enabled } from '$lib/stores/remoteConfigStore' import { addScreen, getScreen, removeScreen } from '$lib/stream-utils' import IconDrawerVerification from '$lib/assets/icons/drawer/IconDrawerVerification.svelte' import { get, patch, putImage } from '$lib/api' @@ -89,7 +88,7 @@ handleAudioChanges() } - $: if ($is_feature_stats_enabled && (isScreenLive || iframeUrl)) { + $: if (isScreenLive || iframeUrl) { toggleTimer(true) } else { toggleTimer(false) @@ -499,7 +498,7 @@ ? 'mask-hexagon' : 'mask-squircle'} object-cover m-auto" />
- {#if $is_feature_stats_enabled && (isScreenLive || iframeUrl)} + {#if isScreenLive || iframeUrl}