Add an extra kb to max sticker size

This commit is contained in:
Fedor Indutny
2023-01-13 10:07:45 -08:00
committed by GitHub
parent 5a89e66fc0
commit 96b753cfd0
2 changed files with 2 additions and 2 deletions

View File

@@ -9,6 +9,6 @@ import io.dropwizard.util.DataSize;
public class Constants {
public static final String METRICS_NAME = "textsecure";
public static final int MAXIMUM_STICKER_SIZE_BYTES = (int) DataSize.kibibytes(300).toBytes();
public static final int MAXIMUM_STICKER_SIZE_BYTES = (int) DataSize.kibibytes(300 + 1).toBytes(); // add 1 kiB for encryption overhead
public static final int MAXIMUM_STICKER_MANIFEST_SIZE_BYTES = (int) DataSize.kibibytes(10).toBytes();
}