mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-04 12:24:00 +01:00
Fix long-text attachments failing media constraint check when sending long messages.
This commit is contained in:
committed by
Michelle Tang
parent
837598657d
commit
a45cf2d33f
@@ -74,7 +74,7 @@ public abstract class MediaConstraints {
|
||||
(ContentTypeUtil.isImageType(contentType) && size <= getImageMaxSize() && isWithinBounds(context, uri)) ||
|
||||
(ContentTypeUtil.isAudioType(contentType) && size <= getAudioMaxSize()) ||
|
||||
(ContentTypeUtil.isVideoType(contentType) && size <= getVideoMaxSize()) ||
|
||||
(ContentTypeUtil.isDocumentType(contentType) && size <= getDocumentMaxSize());
|
||||
((ContentTypeUtil.isDocumentType(contentType) || ContentTypeUtil.isLongTextType(contentType)) && size <= getDocumentMaxSize());
|
||||
} catch (IOException ioe) {
|
||||
Log.w(TAG, "Failed to determine if media's constraints are satisfied.", ioe);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user