EventIndex: Update the imports for the new build system.

This commit is contained in:
Damir Jelić 2020-01-17 10:35:33 +01:00
parent 49c1dbe421
commit 70d394e668
2 changed files with 5 additions and 7 deletions

View file

@ -22,7 +22,7 @@ import PropTypes from 'prop-types';
import Matrix from 'matrix-js-sdk';
import * as sdk from '../../index';
import {MatrixClientPeg} from '../../MatrixClientPeg';
import {EventIndexPeg} from "../../indexing/EventIndexPeg";
import EventIndexPeg from "../../indexing/EventIndexPeg";
import { _t } from '../../languageHandler';
/*

View file

@ -17,11 +17,9 @@ limitations under the License.
import PlatformPeg from "../PlatformPeg";
import {MatrixClientPeg} from "../MatrixClientPeg";
import Matrix from 'matrix-js-sdk';
import EventTimelineSet from 'matrix-js-sdk/lib/models/event-timeline-set';
import EventTimeline from 'matrix-js-sdk/lib/models/event-timeline';
import MatrixEvent from 'matrix-js-sdk/lib/models/event';
import RoomMember from 'matrix-js-sdk/lib/models/room-member';
import * as Matrix from 'matrix-js-sdk';
import {EventTimelineSet} from 'matrix-js-sdk';
import {EventTimeline} from 'matrix-js-sdk';
/*
* Event indexing class that wraps the platform specific event indexing.
@ -448,7 +446,7 @@ export default class EventIndex {
const matrixEvents = events.map(e => {
const matrixEvent = eventMapper(e.event);
const member = new RoomMember(room.roomId, matrixEvent.getSender());
const member = new Matrix.RoomMember(room.roomId, matrixEvent.getSender());
// We can't really reconstruct the whole room state from our
// EventIndex to calculate the correct display name. Use the