diff --git a/src/components/views/rooms/SendMessageComposer.tsx b/src/components/views/rooms/SendMessageComposer.tsx
index 84bb756858..a48c592bf7 100644
--- a/src/components/views/rooms/SendMessageComposer.tsx
+++ b/src/components/views/rooms/SendMessageComposer.tsx
@@ -451,9 +451,8 @@ export class SendMessageComposer extends React.Component', () => {
});
it('correctly sets the editorStateKey for threads', () => {
- const mockThread ={
- getThread: () => {
- return {
- id: 'myFakeThreadId',
- };
- },
- } as any;
const wrapper = mount(
@@ -304,14 +298,15 @@ describe('', () => {
room={mockRoom as any}
placeholder=""
permalinkCreator={new SpecPermalinkConstructor() as any}
- replyToEvent={mockThread}
+ relation={{
+ rel_type: RelationType.Thread,
+ event_id: "myFakeThreadId",
+ }}
/>
);
-
const instance = wrapper.find(SendMessageComposerClass).instance();
const key = instance.editorStateKey;
-
expect(key).toEqual('mx_cider_state_myfakeroom_myFakeThreadId');
});
});