Skip to content

Commit

Permalink
Merge branch 'develop' into sdk/cacheStreams
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored Jan 2, 2024
2 parents 2170b48 + c2e7116 commit 5807121
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-shrimps-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed error message when uploading a file that is not allowed
8 changes: 4 additions & 4 deletions apps/meteor/client/components/ImageGallery/ImageGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ const ImageGallery = () => {
return createPortal(
<FocusScope contain restoreFocus autoFocus>
<Box className={swiperStyle}>
<div className='swiper-container'>
<div className='swiper-container' onClick={onClose}>
<IconButton icon='cross' aria-label='Close gallery' className='rcx-swiper-close-button' onClick={onClose} />
<IconButton icon='chevron-right' className='rcx-swiper-prev-button' />
<IconButton icon='chevron-left' className='rcx-swiper-next-button' />
<IconButton icon='chevron-right' className='rcx-swiper-prev-button' onClick={(e) => e.stopPropagation()} />
<IconButton icon='chevron-left' className='rcx-swiper-next-button' onClick={(e) => e.stopPropagation()} />
<Swiper
ref={swiperRef}
navigation={{
Expand All @@ -131,7 +131,7 @@ const ImageGallery = () => {
{images?.map(({ _id, url }) => (
<SwiperSlide key={_id}>
<div className='swiper-zoom-container'>
<img src={url} loading='lazy' />
<img src={url} loading='lazy' onClick={(e) => e.stopPropagation()} />
<div className='rcx-lazy-preloader'>
<Throbber inheritColor />
</div>
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/client/lib/chats/flows/uploadFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const uploadFiles = async (chat: ChatAPI, files: readonly File[], resetFi
imperativeModal.close();
uploadNextFile();
},
invalidContentType: Boolean(file.type && !fileUploadIsValidContentType(file.type)),
invalidContentType: !(file.type && fileUploadIsValidContentType(file.type)),
},
});
};
Expand Down

0 comments on commit 5807121

Please sign in to comment.