FilePanel: Don't import the whole of the js-sdk.

pull/21833/head
Damir Jelić 2020-01-22 16:26:40 +01:00
parent f917c2faea
commit c5e8753b05
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import Matrix from 'matrix-js-sdk';
import {Filter} from 'matrix-js-sdk';
import * as sdk from '../../index';
import {MatrixClientPeg} from '../../MatrixClientPeg';
import EventIndexPeg from "../../indexing/EventIndexPeg";
@ -105,7 +105,7 @@ const FilePanel = createReactClass({
async fetchFileEventsServer(room) {
const client = MatrixClientPeg.get();
const filter = new Matrix.Filter(client.credentials.userId);
const filter = new Filter(client.credentials.userId);
filter.setDefinition(
{
"room": {