Skip to content

Commit 6ef7bd3

Browse files
committed
Remove getter for realm Matrix client
1 parent 26d1de2 commit 6ef7bd3

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Diff for: packages/realm-server/tests/helpers/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,9 @@ export async function runTestRealmServer({
411411
dbAdapter,
412412
});
413413

414+
// FIXME is this still needed, should it always happen?
414415
if (loginMatrix) {
415-
await testRealm.matrixClient.login();
416+
await testRealm.logInToMatrix();
416417
}
417418

418419
virtualNetwork.mount(testRealm.handle);

Diff for: packages/realm-server/tests/realm-endpoints-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3182,7 +3182,7 @@ module(basename(__filename), function () {
31823182
matrixURL,
31833183
}));
31843184

3185-
await testRealm.matrixClient.login();
3185+
await testRealm.logInToMatrix();
31863186
}
31873187

31883188
setupDB(hooks, {

Diff for: packages/runtime-common/realm.ts

+4
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@ export class Realm {
459459
});
460460
}
461461

462+
async logInToMatrix() {
463+
await this.#matrixClient.login();
464+
}
465+
462466
private async readinessCheck(
463467
_request: Request,
464468
requestContext: RequestContext,

0 commit comments

Comments
 (0)