fix jpeg compression max limit issues

1) Increase max image size when sending via push
2) Decrease max image dimen when sending via MMS

Fixes #3070
Closes #3287
// FREEBIE
This commit is contained in:
Jake McGinty 2015-05-30 19:22:24 -07:00 committed by Moxie Marlinspike
parent bb6b86ad59
commit 3a07809545
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
package org.thoughtcrime.securesms.mms;
public class MmsMediaConstraints extends MediaConstraints {
private static final int MAX_IMAGE_DIMEN = 1280;
private static final int MAX_IMAGE_DIMEN = 1024;
public static final int MAX_MESSAGE_SIZE = 280 * 1024;
@Override

View File

@ -17,7 +17,7 @@ public class PushMediaConstraints extends MediaConstraints {
@Override
public int getImageMaxSize() {
return 300 * KB;
return 420 * KB;
}
@Override