mirror of
https://github.com/oxen-io/session-android.git
synced 2025-11-14 13:33:29 +00:00
Properly check attachment size during media send.
Prevent users from trying to send videos that exceed the size limit. Also, this commit properly populates height/width on media shared into the app. Fixes #8573
This commit is contained in:
@@ -105,6 +105,7 @@ public class MediaPreviewViewModel extends ViewModel {
|
||||
mediaRecord.getDate(),
|
||||
mediaRecord.getAttachment().getWidth(),
|
||||
mediaRecord.getAttachment().getHeight(),
|
||||
mediaRecord.getAttachment().getSize(),
|
||||
Optional.absent(),
|
||||
Optional.fromNullable(mediaRecord.getAttachment().getCaption()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user