Fixup reaction toggle button

This commit is contained in:
Half-Shot
2024-12-16 14:26:47 +00:00
parent 7017f610fc
commit a6403d913b
3 changed files with 62 additions and 30 deletions

View File

@@ -32,6 +32,7 @@ export function getBasicCallViewModelEnvironment(
handRaisedSubject: BehaviorSubject<Record<string, RaisedHandInfo>>;
reactionsSubject: BehaviorSubject<Record<string, ReactionInfo>>;
} {
const matrixRoomId = "!myRoomId:example.com";
const matrixRoomMembers = new Map(members.map((p) => [p.userId, p]));
const remoteParticipants = of([aliceParticipant]);
const liveKitRoom = mockLivekitRoom(
@@ -51,6 +52,7 @@ export function getBasicCallViewModelEnvironment(
off: vitest.fn(),
} as Partial<MatrixClient> as MatrixClient,
getMember: (userId) => matrixRoomMembers.get(userId) ?? null,
roomId: matrixRoomId,
});
const remoteRtcMemberships = new BehaviorSubject<CallMembership[]>(