Fix the ability to send the post when an upload failed (#1195)
This commit is contained in:
parent
dc90ce46ae
commit
b27a1f8e0b
1 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ class PostTextbox extends PureComponent {
|
|||
const valueLength = value.trim().length;
|
||||
|
||||
if (files.length) {
|
||||
return valueLength <= MAX_MESSAGE_LENGTH && uploadFileRequestStatus !== RequestStatus.STARTED && files.filter((f) => !f.failed).length > 0;
|
||||
return valueLength <= MAX_MESSAGE_LENGTH && uploadFileRequestStatus !== RequestStatus.STARTED;
|
||||
}
|
||||
|
||||
return valueLength > 0 && valueLength <= MAX_MESSAGE_LENGTH;
|
||||
|
|
@ -218,8 +218,8 @@ class PostTextbox extends PureComponent {
|
|||
return;
|
||||
}
|
||||
|
||||
const hasFailedImages = files.some((f) => f.failed);
|
||||
if (hasFailedImages) {
|
||||
const hasFailedAttachments = files.some((f) => f.failed);
|
||||
if (hasFailedAttachments) {
|
||||
const {intl} = this.props;
|
||||
|
||||
Alert.alert(
|
||||
|
|
|
|||
Loading…
Reference in a new issue