Add an extra kb to max sticker size

This commit is contained in:
Fedor Indutny authored and GitHub committed 2023-01-13 12:07:45 -06:00
1 parent 5a89e66fc0
commit 96b753cfd0
2 files changed
+2 -2

No files matched your search

@@ -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();
}