Skip to content

Commit

Permalink
fix ContextBuilder create room
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Dec 27, 2024
1 parent d3924c3 commit 3aa6ad1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/homeserver/src/fixtures/ContextBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export function createMediaId(length: number) {
}

class MockedRoom {
private events: EventStore[] = [];
public events: EventStore[] = [];
constructor(
private roomId: string,
public roomId: string,
events: EventStore[],
) {
for (const event of events) {
Expand Down Expand Up @@ -191,7 +191,10 @@ export class ContextBuilder {
makeRequest,
createRoom: async (sender: string, ...members: string[]) => {
const { roomId, events } = await createRoom(
[sender, ...members],
[
`@${sender}:${config.name}`,
...members.map((member) => `@${member}:${config.name}`),
],
createSignedEvent(config.signingKey[0], config.name),
`!${createMediaId(18)}:${config.name}`,
);
Expand Down

0 comments on commit 3aa6ad1

Please sign in to comment.