Skip to content

Commit 113dfc5

Browse files
authored
Merge pull request matrix-org#4845 from matrix-org/t3chguy/hf1
ts-ignore because something is made of fail
2 parents 538c853 + a905028 commit 113dfc5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/structures/MatrixChat.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ limitations under the License.
1818
*/
1919

2020
import React, { createRef } from 'react';
21-
import { createClient } from "matrix-js-sdk/src";
21+
// @ts-ignore - XXX: no idea why this import fails
22+
import * as Matrix from "matrix-js-sdk";
2223
import { InvalidStoreError } from "matrix-js-sdk/src/errors";
2324
import { RoomMember } from "matrix-js-sdk/src/models/room-member";
2425
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
@@ -1618,7 +1619,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
16181619
let cli = MatrixClientPeg.get();
16191620
if (!cli) {
16201621
const {hsUrl, isUrl} = this.props.serverConfig;
1621-
cli = createClient({
1622+
cli = Matrix.createClient({
16221623
baseUrl: hsUrl,
16231624
idBaseUrl: isUrl,
16241625
});

0 commit comments

Comments
 (0)