Fix streamable display after left a group
This commit is contained in:
parent
4400c79b93
commit
50b752a205
@ -2,6 +2,7 @@ import { derived, get, Readable } from "svelte/store";
|
|||||||
import { ScreenSharingLocalMedia, screenSharingLocalMedia } from "./ScreenSharingStore";
|
import { ScreenSharingLocalMedia, screenSharingLocalMedia } from "./ScreenSharingStore";
|
||||||
import { peerStore, screenSharingStreamStore } from "./PeerStore";
|
import { peerStore, screenSharingStreamStore } from "./PeerStore";
|
||||||
import type { RemotePeer } from "../WebRtc/SimplePeer";
|
import type { RemotePeer } from "../WebRtc/SimplePeer";
|
||||||
|
import { highlightedEmbedScreen } from "./EmbedScreensStore";
|
||||||
|
|
||||||
export type Streamable = RemotePeer | ScreenSharingLocalMedia;
|
export type Streamable = RemotePeer | ScreenSharingLocalMedia;
|
||||||
|
|
||||||
@ -25,6 +26,12 @@ function createStreamableCollectionStore(): Readable<Map<string, Streamable>> {
|
|||||||
addPeer($screenSharingLocalMedia);
|
addPeer($screenSharingLocalMedia);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const $highlightedEmbedScreen = get(highlightedEmbedScreen);
|
||||||
|
|
||||||
|
if ($highlightedEmbedScreen?.type === 'streamable' && !peers.has($highlightedEmbedScreen.embed.uniqueId)) {
|
||||||
|
highlightedEmbedScreen.removeHighlight();
|
||||||
|
}
|
||||||
|
|
||||||
set(peers);
|
set(peers);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -38,8 +38,6 @@ body .message-info.warning{
|
|||||||
.video-container {
|
.video-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
background-color: #00000099;
|
|
||||||
border-radius: 15px;
|
|
||||||
cursor: url('./images/cursor_pointer.png'), pointer;
|
cursor: url('./images/cursor_pointer.png'), pointer;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user