Increase notification video attachment GIF length (#3027)

- Increase the length of the GIF created for video attachments in notifications as the Android 13 bug that limited this has been resolved
This commit is contained in:
Joris Pelgröm 2022-11-03 17:29:42 +01:00 committed by GitHub
parent 3afc5d4d55
commit 2b445ca03c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1540,7 +1540,7 @@ class MessagingManager @Inject constructor(
run frameLoop@{
for (timeInMicroSeconds in VIDEO_START_MICROSECONDS until durationInMicroSeconds step VIDEO_INCREMENT_MICROSECONDS) {
// Max size in bytes for notification GIF
val maxSize = (2500000 - singleFrame)
val maxSize = (5000000 - singleFrame)
if (processingFramesSize >= maxSize) {
return@frameLoop
}