Pass around MatrixClients instead of using MatrixClientPeg (#10984)

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
Michael Telatynski
2023-06-01 14:43:24 +01:00
committed by GitHub
co-authored by Richard van der Hoff
parent b6b9ce3c46
commit 21ffc50f1e
23 changed files with 152 additions and 135 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ export default async function createRoom(client: MatrixClient, opts: IOpts): Pro
}
});
if (opts.dmUserId) await Rooms.setDMRoom(roomId, opts.dmUserId);
if (opts.dmUserId) await Rooms.setDMRoom(client, roomId, opts.dmUserId);
})
.then(() => {
if (opts.parentSpace) {