Fix js-sdk imports for new module

This commit is contained in:
Travis Ralston 2019-12-19 18:54:36 -07:00
parent 7993515099
commit be4eeb5e07
6 changed files with 8 additions and 8 deletions

View file

@ -19,9 +19,9 @@ limitations under the License.
import {MatrixClient, MemoryStore} from 'matrix-js-sdk';
import utils from 'matrix-js-sdk/lib/utils';
import EventTimeline from 'matrix-js-sdk/lib/models/event-timeline';
import EventTimelineSet from 'matrix-js-sdk/lib/models/event-timeline-set';
import * as utils from 'matrix-js-sdk/lib/utils';
import {EventTimeline} from 'matrix-js-sdk/lib/models/event-timeline';
import {EventTimelineSet} from 'matrix-js-sdk/lib/models/event-timeline-set';
import * as sdk from './index';
import createMatrixClient from './utils/createMatrixClient';
import SettingsStore from './settings/SettingsStore';

View file

@ -16,7 +16,7 @@ limitations under the License.
*/
import MatrixClientPeg from './MatrixClientPeg';
import PushProcessor from 'matrix-js-sdk/lib/pushprocessor';
import {PushProcessor} from 'matrix-js-sdk/lib/pushprocessor';
export const ALL_MESSAGES_LOUD = 'all_messages_loud';
export const ALL_MESSAGES = 'all_messages';

View file

@ -18,7 +18,7 @@ import SettingController from "./SettingController";
import MatrixClientPeg from '../../MatrixClientPeg';
// XXX: This feels wrong.
import PushProcessor from "matrix-js-sdk/lib/pushprocessor";
import {PushProcessor} from "matrix-js-sdk/lib/pushprocessor";
function isMasterRuleEnabled() {
// Return the value of the master push rule as a default

View file

@ -15,7 +15,7 @@ limitations under the License.
*/
import Matrix from 'matrix-js-sdk';
import LocalStorageCryptoStore from 'matrix-js-sdk/lib/crypto/store/localStorage-crypto-store';
import {LocalStorageCryptoStore} from 'matrix-js-sdk/lib/crypto/store/localStorage-crypto-store';
import Analytics from '../Analytics';
const localStorage = window.localStorage;

View file

@ -16,7 +16,7 @@ limitations under the License.
import MatrixClientPeg from "../../MatrixClientPeg";
import isIp from "is-ip";
import utils from 'matrix-js-sdk/lib/utils';
import * as utils from 'matrix-js-sdk/lib/utils';
import SpecPermalinkConstructor, {baseUrl as matrixtoBaseUrl} from "./SpecPermalinkConstructor";
import PermalinkConstructor, {PermalinkParts} from "./PermalinkConstructor";
import RiotPermalinkConstructor from "./RiotPermalinkConstructor";

View file

@ -17,7 +17,7 @@ limitations under the License.
import ReactDOM from 'react-dom';
import MatrixClientPeg from '../MatrixClientPeg';
import SettingsStore from "../settings/SettingsStore";
import PushProcessor from 'matrix-js-sdk/lib/pushprocessor';
import {PushProcessor} from 'matrix-js-sdk/lib/pushprocessor';
import * as sdk from '../index';
export function pillifyLinks(nodes, mxEvent) {