mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
make js-sdk import happy?
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
9391d151f3
commit
274e6f3825
1 changed files with 2 additions and 3 deletions
|
@ -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 a new issue