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

Commit

Permalink
MessageComposerButtons: move some buttons out of the dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ckiee committed Jun 29, 2022
1 parent 09fd927 commit a0b49b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/views/rooms/MessageComposerButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ const MessageComposerButtons: React.FC<IProps> = (props: IProps) => {
} else {
mainButtons = [
emojiButton(props),
stickersButton(props),
voiceRecordingButton(props, narrow),
uploadButton(), // props passed via UploadButtonContext
];
moreButtons = [
stickersButton(props),
voiceRecordingButton(props, narrow),
props.showPollsButton && pollButton(room, props.relation),
locationButton(props, room, roomId, matrixClient),
];
Expand Down
6 changes: 4 additions & 2 deletions test/components/views/rooms/MessageComposerButtons-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ describe("MessageComposerButtons", () => {

expect(buttonLabels(buttons)).toEqual([
"Emoji",
"Sticker",
"Voice Message",
"Attachment",
"More options",
]);
Expand All @@ -73,11 +75,11 @@ describe("MessageComposerButtons", () => {

expect(buttonLabels(buttons)).toEqual([
"Emoji",
"Sticker",
"Voice Message",
"Attachment",
"More options",
[
"Sticker",
"Voice Message",
"Poll",
"Location",
],
Expand Down

0 comments on commit a0b49b6

Please sign in to comment.