Skip to content

Commit 44edf0e

Browse files
committed
git commit
1 parent bab3d71 commit 44edf0e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

spec/unit/matrixrtc/mocks.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export const membershipTemplate: SessionMembershipData & { user_id: string } = {
4545

4646
export type MockClient = Pick<
4747
MatrixClient,
48-
| "http"
4948
| "getUserId"
5049
| "getDeviceId"
5150
| "sendEvent"
@@ -66,7 +65,6 @@ export function makeMockClient(userId: string, deviceId: string): MockClient {
6665
cancelPendingEvent: jest.fn(),
6766
_unstable_updateDelayedEvent: jest.fn(),
6867
_unstable_sendDelayedStateEvent: jest.fn(),
69-
http: { authedRequest: jest.fn() } as any, // Mocking http request for compatibility
7068
};
7169
}
7270

src/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,11 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
13251325
this.store = opts.store || new StubStore();
13261326
this.deviceId = opts.deviceId || null;
13271327
this.sessionId = secureRandomString(10);
1328+
this.delayedEventRestartLocalTimeoutMS = opts.delayedEventRestartLocalTimeoutMS;
13281329

13291330
const userId = opts.userId || null;
13301331
this.credentials = { userId };
1331-
this.delayedEventRestartLocalTimeoutMS = opts.delayedEventRestartLocalTimeoutMS;
1332+
13321333
this.http = new MatrixHttpApi(this as ConstructorParameters<typeof MatrixHttpApi>[0], {
13331334
fetchFn: opts.fetchFn,
13341335
baseUrl: opts.baseUrl,

0 commit comments

Comments
 (0)