fix tile flicker on video mute/unmute

(only pass rtcBackendIdenitity instead of full rtcMember)
This commit is contained in:
Timo K
2026-01-09 19:31:40 +01:00
parent 1a9e4a1a5c
commit 735c17d3e6
5 changed files with 24 additions and 27 deletions

View File

@@ -13,7 +13,6 @@ import {
type Room as LivekitRoom,
} from "livekit-client";
import { observeParticipantEvents } from "@livekit/components-core";
import { type CallMembership } from "matrix-js-sdk/lib/matrixrtc/CallMembership";
import { type ObservableScope } from "./ObservableScope.ts";
import {
@@ -76,7 +75,7 @@ export class UserMedia {
this.scope,
this.id,
this.userId,
this.rtcMembership,
this.rtcBackendIdentity,
this.participant.value$,
this.encryptionSystem,
this.livekitRoom$,
@@ -91,7 +90,7 @@ export class UserMedia {
this.scope,
this.id,
this.userId,
this.rtcMembership,
this.rtcBackendIdentity,
this.participant.value$,
this.encryptionSystem,
this.livekitRoom$,
@@ -143,7 +142,7 @@ export class UserMedia {
scope,
`${this.id}:${key}`,
this.userId,
this.rtcMembership,
this.rtcBackendIdentity,
p,
this.encryptionSystem,
this.livekitRoom$,
@@ -195,8 +194,7 @@ export class UserMedia {
private readonly scope: ObservableScope,
public readonly id: string,
private readonly userId: string,
// TODO evaluate if this should just be the rtcBackendIdentity
private readonly rtcMembership: CallMembership,
private readonly rtcBackendIdentity: string,
private readonly participant: TaggedParticipant,
private readonly encryptionSystem: EncryptionSystem,
private readonly livekitRoom$: Behavior<LivekitRoom | undefined>,