Fix user id

This commit is contained in:
Hugh Nimmo-Smith 2024-11-06 14:12:32 +00:00
parent 73107e4139
commit bcbdb596a3
2 changed files with 6 additions and 6 deletions

View File

@ -79,10 +79,10 @@ const daveParticipant = mockRemoteParticipant({ identity: daveId });
const members = new Map([alice, bob, carol, dave].map((p) => [p.userId, p]));
const aliceRtcMember = mockMembership(aliceId, aliceDev);
const bobRtcMember = mockMembership(bobId, bobDev);
// const carolRtcMember = mockMembership(carolId, carolDev);
const daveRtcMember = mockMembership(daveId, daveDev);
const aliceRtcMember = mockMembership(alice, aliceDev);
const bobRtcMember = mockMembership(bob, bobDev);
// const carolRtcMember = mockMembership(carol, carolDev);
const daveRtcMember = mockMembership(dave, daveDev);
export interface GridLayoutSummary {
type: "grid";

View File

@ -98,7 +98,7 @@ function mockEmitter<T>(): EmitterMock<T> {
}
export function mockMembership(
userId: string,
user: string | RoomMember,
deviceId: string,
callId = "",
fociPreferred: Focus[] = [],
@ -114,7 +114,7 @@ export function mockMembership(
...membership,
};
const event = new MatrixEvent({
sender: userId,
sender: typeof user === "string" ? user : user.userId,
});
return new CallMembership(event, data);
}