From cc4d145f148f9e5108503d8af276fb27f1549d26 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 12 Apr 2021 14:06:57 -0600 Subject: [PATCH] Fix js-sdk import in SlashCommands This is important because the `matrix-js-sdk` types are mismatched in some builds of Element --- src/SlashCommands.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlashCommands.tsx b/src/SlashCommands.tsx index 3b6a202cf6..65658ed41c 100644 --- a/src/SlashCommands.tsx +++ b/src/SlashCommands.tsx @@ -20,7 +20,7 @@ limitations under the License. import * as React from 'react'; -import { ContentHelpers } from 'matrix-js-sdk'; +import { ContentHelpers } from 'matrix-js-sdk/src/content-helpers'; import {MatrixClientPeg} from './MatrixClientPeg'; import dis from './dispatcher/dispatcher'; import * as sdk from './index';