Fix wrong usage of `ensureRoomJoined()`

This commit is contained in:
Eric Eastwood 2023-06-07 13:16:01 -05:00
parent 53019dc378
commit f466b9abb5
1 changed files with 1 additions and 4 deletions

View File

@ -1004,10 +1004,7 @@ describe('matrix-public-archive', () => {
// the archive user here and want the same join `reason` to avoid a new
// state event being created (`joinRoom` -> `{ displayname, membership }`
// whereas `ensureRoomJoined` -> `{ reason, displayname, membership }`)
await ensureRoomJoined({
accessToken: archiveAppServiceUserClient.accessToken,
roomIdOrAlias: roomId,
});
await ensureRoomJoined(archiveAppServiceUserClient.accessToken, roomId);
// Just spread things out a bit so the event times are more obvious
// and stand out from each other while debugging and so we just have