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

Commit

Permalink
Make composerType optional
Browse files Browse the repository at this point in the history
Signed-off-by: Šimon Brandner <[email protected]>
  • Loading branch information
SimonBrandner committed Oct 25, 2021
1 parent 750a719 commit 2b3acb2
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/components/views/messages/TextualBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
action: Action.ComposerInsert,
userId: mxEvent.getSender(),
timelineRenderingType: this.context.timelineRenderingType,
composerType: null,
});
};

Expand Down
1 change: 0 additions & 1 deletion src/components/views/right_panel/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@ const UserOptionsSection: React.FC<{
action: Action.ComposerInsert,
userId: member.userId,
timelineRenderingType: TimelineRenderingType.Room,
composerType: null,
});
};

Expand Down
1 change: 0 additions & 1 deletion src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@ export default class EventTile extends React.Component<IProps, IState> {
action: Action.ComposerInsert,
userId: mxEvent.getSender(),
timelineRenderingType: this.context.timelineRenderingType,
composerType: null,
});
};

Expand Down
1 change: 0 additions & 1 deletion src/components/views/rooms/MessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ export default class MessageComposer extends React.Component<IProps, IState> {
action: Action.ComposerInsert,
text: emoji,
timelineRenderingType: this.context.timelineRenderingType,
composerType: null,
});
return true;
};
Expand Down
2 changes: 1 addition & 1 deletion src/dispatcher/payloads/ComposerInsertPayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export enum ComposerType {
interface IBaseComposerInsertPayload extends ActionPayload {
action: Action.ComposerInsert;
timelineRenderingType: TimelineRenderingType;
composerType: ComposerType | null; // null if should be re-dispatched to the correct composer
composerType?: ComposerType; // null/undefined if should be re-dispatched to the correct composer
}

interface IComposerInsertMentionPayload extends IBaseComposerInsertPayload {
Expand Down

0 comments on commit 2b3acb2

Please sign in to comment.