diff --git a/src/components/views/rooms/SendMessageComposer.tsx b/src/components/views/rooms/SendMessageComposer.tsx index 79411e6ebc..f35cba3cb9 100644 --- a/src/components/views/rooms/SendMessageComposer.tsx +++ b/src/components/views/rooms/SendMessageComposer.tsx @@ -157,6 +157,8 @@ interface ISendMessageComposerProps extends MatrixClientProps { @replaceableComponent("views.rooms.SendMessageComposer") export class SendMessageComposer extends React.Component { static contextType = RoomContext; + public context!: React.ContextType; + private readonly prepareToEncrypt?: DebouncedFunc<() => void>; private readonly editorRef = createRef(); private model: EditorModel = null; @@ -293,7 +295,7 @@ export class SendMessageComposer extends React.Component= 0; i--) { diff --git a/test/components/structures/ThreadPanel-test.tsx b/test/components/structures/ThreadPanel-test.tsx index d6de2ebde6..a59e9aa6cd 100644 --- a/test/components/structures/ThreadPanel-test.tsx +++ b/test/components/structures/ThreadPanel-test.tsx @@ -15,9 +15,8 @@ limitations under the License. */ import React from 'react'; -import { shallow, mount, configure } from "enzyme"; +import { shallow, mount } from "enzyme"; import '../../skinned-sdk'; -import Adapter from "@wojtekmaj/enzyme-adapter-react-17"; import { ThreadFilterType, @@ -28,8 +27,6 @@ import { ContextMenuButton } from '../../../src/accessibility/context_menu/Conte import ContextMenu from '../../../src/components/structures/ContextMenu'; import { _t } from '../../../src/languageHandler'; -configure({ adapter: new Adapter() }); - describe('ThreadPanel', () => { describe('Header', () => { it('expect that All filter for ThreadPanelHeader properly renders Show: All threads', () => {