Make patch compatible with #735

This commit is contained in:
Stefano Pigozzi 2024-10-14 00:43:44 +02:00
parent 3ef323cda1
commit 4638b85cc4
No known key found for this signature in database
GPG key ID: 5ADA3868646C3FC0

View file

@ -238,7 +238,7 @@ function Compose({
charactersReservedPerUrl,
} = {},
mediaAttachments: {
supportedMimeTypes: supportedMediaMimeTypes = [],
supportedMimeTypes: supportedMediaMimeTypes = undefined,
imageSizeLimit,
imageMatrixLimit,
videoSizeLimit,
@ -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={() => {