Skip to content

Commit fae4ca4

Browse files
committed
git commit
1 parent a4310d8 commit fae4ca4

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
@@ -44,7 +44,6 @@ export const membershipTemplate: SessionMembershipData = {
4444

4545
export type MockClient = Pick<
4646
MatrixClient,
47-
| "http"
4847
| "getUserId"
4948
| "getDeviceId"
5049
| "sendEvent"
@@ -65,7 +64,6 @@ export function makeMockClient(userId: string, deviceId: string): MockClient {
6564
cancelPendingEvent: jest.fn(),
6665
_unstable_updateDelayedEvent: jest.fn(),
6766
_unstable_sendDelayedStateEvent: jest.fn(),
68-
http: { authedRequest: jest.fn() } as any, // Mocking http request for compatibility
6967
};
7068
}
7169

src/client.ts

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

13261327
const userId = opts.userId || null;
13271328
this.credentials = { userId };
1328-
this.delayedEventRestartLocalTimeoutMS = opts.delayedEventRestartLocalTimeoutMS;
1329+
13291330
this.http = new MatrixHttpApi(this as ConstructorParameters<typeof MatrixHttpApi>[0], {
13301331
fetchFn: opts.fetchFn,
13311332
baseUrl: opts.baseUrl,

0 commit comments

Comments
 (0)