Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2b3acb2

Browse files
committed
Make composerType optional
Signed-off-by: Šimon Brandner <[email protected]>
1 parent 750a719 commit 2b3acb2

File tree

5 files changed

+1
-5
lines changed

5 files changed

+1
-5
lines changed

src/components/views/messages/TextualBody.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
411411
action: Action.ComposerInsert,
412412
userId: mxEvent.getSender(),
413413
timelineRenderingType: this.context.timelineRenderingType,
414-
composerType: null,
415414
});
416415
};
417416

src/components/views/right_panel/UserInfo.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ const UserOptionsSection: React.FC<{
380380
action: Action.ComposerInsert,
381381
userId: member.userId,
382382
timelineRenderingType: TimelineRenderingType.Room,
383-
composerType: null,
384383
});
385384
};
386385

src/components/views/rooms/EventTile.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,6 @@ export default class EventTile extends React.Component<IProps, IState> {
863863
action: Action.ComposerInsert,
864864
userId: mxEvent.getSender(),
865865
timelineRenderingType: this.context.timelineRenderingType,
866-
composerType: null,
867866
});
868867
};
869868

src/components/views/rooms/MessageComposer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ export default class MessageComposer extends React.Component<IProps, IState> {
404404
action: Action.ComposerInsert,
405405
text: emoji,
406406
timelineRenderingType: this.context.timelineRenderingType,
407-
composerType: null,
408407
});
409408
return true;
410409
};

src/dispatcher/payloads/ComposerInsertPayload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export enum ComposerType {
2828
interface IBaseComposerInsertPayload extends ActionPayload {
2929
action: Action.ComposerInsert;
3030
timelineRenderingType: TimelineRenderingType;
31-
composerType: ComposerType | null; // null if should be re-dispatched to the correct composer
31+
composerType?: ComposerType; // null/undefined if should be re-dispatched to the correct composer
3232
}
3333

3434
interface IComposerInsertMentionPayload extends IBaseComposerInsertPayload {

0 commit comments

Comments
 (0)