Skip to content

Commit

Permalink
Make patch compatible with cheeaun#735
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffo99 committed Oct 13, 2024
1 parent 3ef323c commit 4638b85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function Compose({
charactersReservedPerUrl,
} = {},
mediaAttachments: {
supportedMimeTypes: supportedMediaMimeTypes = [],
supportedMimeTypes: supportedMediaMimeTypes = undefined,
imageSizeLimit,
imageMatrixLimit,
videoSizeLimit,
Expand Down Expand Up @@ -1474,7 +1474,8 @@ function Compose({
class="toolbar-button gif-picker-button"
disabled={
uiState === 'loading' ||
(maxMediaAttachments !== undefined && mediaAttachments.length >= maxMediaAttachments) ||
(maxMediaAttachments !== undefined &&
mediaAttachments.length >= maxMediaAttachments) ||
!!poll
}
onClick={() => {
Expand Down

0 comments on commit 4638b85

Please sign in to comment.