mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-31 14:16:10 +00:00
assert gif size constraints before OOMEs
fixes #3778 closes #3833 // FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
c36c759c8b
commit
a84dcf6a8e
@@ -76,7 +76,7 @@ public class VideoSlide extends Slide {
|
||||
cursor.close();
|
||||
}
|
||||
|
||||
assertMediaSize(context, uri);
|
||||
assertMediaSize(context, uri, MmsMediaConstraints.MAX_MESSAGE_SIZE);
|
||||
part.setDataUri(uri);
|
||||
part.setContentId((System.currentTimeMillis()+"").getBytes());
|
||||
part.setName(("Video" + System.currentTimeMillis()).getBytes());
|
||||
|
||||
Reference in New Issue
Block a user