Pass around MatrixClients instead of using MatrixClientPeg (#11000)
This commit is contained in:
parent
aa5a2e1363
commit
938aefc51c
28 changed files with 176 additions and 141 deletions
|
@ -90,5 +90,5 @@ export async function startDm(client: MatrixClient, targets: Member[], showSpinn
|
|||
}
|
||||
|
||||
createRoomOptions.spinner = showSpinner;
|
||||
return createRoom(createRoomOptions);
|
||||
return createRoom(client, createRoomOptions);
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ export const showCreateNewRoom = async (space: Room, type?: RoomType): Promise<b
|
|||
});
|
||||
const [shouldCreate, opts] = await modal.finished;
|
||||
if (shouldCreate) {
|
||||
await createRoom(opts);
|
||||
await createRoom(space.client, opts);
|
||||
}
|
||||
return !!shouldCreate;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue