mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-21 00:28:08 +08:00
Fix user id
This commit is contained in:
parent
73107e4139
commit
bcbdb596a3
@ -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";
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user