make js-sdk import happy?
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
9391d151f3
commit
274e6f3825
|
@ -18,7 +18,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
import React, { createRef } from 'react';
|
||||
import { createClient } from "matrix-js-sdk/src";
|
||||
import * as Matrix from "matrix-js-sdk";
|
||||
import { InvalidStoreError } from "matrix-js-sdk/src/errors";
|
||||
import { RoomMember } from "matrix-js-sdk/src/models/room-member";
|
||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||
|
@ -1618,9 +1618,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
let cli = MatrixClientPeg.get();
|
||||
if (!cli) {
|
||||
const {hsUrl, isUrl} = this.props.serverConfig;
|
||||
cli = createClient({
|
||||
cli = Matrix.createClient({
|
||||
baseUrl: hsUrl,
|
||||
// @ts-ignore - XXX: remove me when it doesn't break tests
|
||||
idBaseUrl: isUrl,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue