Skip to content

Commit

Permalink
fix: Send attachments through iOS browser (RocketChat#34846)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoevanp authored Dec 31, 2024
1 parent 4460503 commit 1b17bb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-sloths-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixes the send attachments option not working on iOS browsers by moving it from the composer dropdown menu to the composer primary actions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ const MessageBoxActionsToolbar = ({
createNew.push(allActions.createDiscussionAction);

if (variant === 'small') {
featured.push(allActions.audioMessageAction);
createNew.push(allActions.videoMessageAction, allActions.fileUploadAction);
featured.push(allActions.audioMessageAction, allActions.fileUploadAction);
createNew.push(allActions.videoMessageAction);
} else {
featured.push(allActions.audioMessageAction, allActions.videoMessageAction, allActions.fileUploadAction);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/tests/e2e/message-composer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test.describe.serial('message-composer', () => {
await page.setViewportSize({ width: 768, height: 600 });
await poHomeChannel.sidenav.openChat(targetChannel);

await expect(poHomeChannel.composerToolbarActions).toHaveCount(5);
await expect(poHomeChannel.composerToolbarActions).toHaveCount(6);
});

test('should navigate on toolbar using arrow keys', async ({ page }) => {
Expand Down

0 comments on commit 1b17bb1

Please sign in to comment.