Show that we've proved to TypeScript that the media is user media

This commit is contained in:
Robin
2025-10-21 13:22:20 -04:00
parent 340265a838
commit 1a26a85a78

View File

@@ -203,7 +203,8 @@ export class TileStoreBuilder {
media === this.prevSpotlightSpeaker &&
this.spotlight.media.length === 1 &&
"speaking$" in this.spotlight.media[0] &&
this.prevSpotlightSpeaker !== this.spotlight.media[0]
this.prevSpotlightSpeaker !==
(this.spotlight.media[0] satisfies UserMediaViewModel)
) {
const prev = this.prevGridByMedia.get(this.spotlight.media[0]);
if (prev !== undefined) {