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

Commit 1f11f19

Browse files
committed
MessageComposerButtons: move some buttons out of the dropdown
1 parent 3f98e4d commit 1f11f19

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/views/rooms/MessageComposerButtons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ const MessageComposerButtons: React.FC<IProps> = (props: IProps) => {
8282
} else {
8383
mainButtons = [
8484
emojiButton(props),
85+
stickersButton(props),
86+
voiceRecordingButton(props, narrow),
8587
uploadButton(), // props passed via UploadButtonContext
8688
];
8789
moreButtons = [
88-
stickersButton(props),
89-
voiceRecordingButton(props, narrow),
9090
props.showPollsButton && pollButton(room, props.relation),
9191
locationButton(props, room, roomId, matrixClient),
9292
];

test/components/views/rooms/MessageComposerButtons-test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ describe("MessageComposerButtons", () => {
5454

5555
expect(buttonLabels(buttons)).toEqual([
5656
"Emoji",
57+
"Sticker",
58+
"Voice Message",
5759
"Attachment",
5860
"More options",
5961
]);
@@ -73,11 +75,11 @@ describe("MessageComposerButtons", () => {
7375

7476
expect(buttonLabels(buttons)).toEqual([
7577
"Emoji",
78+
"Sticker",
79+
"Voice Message",
7680
"Attachment",
7781
"More options",
7882
[
79-
"Sticker",
80-
"Voice Message",
8183
"Poll",
8284
"Location",
8385
],

0 commit comments

Comments
 (0)