Fix basic math and logic error, possibly

This commit is contained in:
Stefano Pigozzi 2024-09-08 02:55:12 +02:00
parent 475fe228af
commit 774605d1ee
No known key found for this signature in database
GPG key ID: 5ADA3868646C3FC0

View file

@ -1329,7 +1329,7 @@ function Compose({
<input
type="file"
accept={supportedMimeTypes?.join(',')}
multiple={!(mediaAttachments.length > maxMediaAttachments)}
multiple={!(maxMediaAttachments - mediaAttachments.length < 2)}
disabled={
uiState === 'loading' ||
mediaAttachments.length >= maxMediaAttachments ||