Fix a regression with video size
This commit is contained in:
parent
e510de1ccc
commit
d7cbae7c47
|
@ -389,8 +389,9 @@ internal class UploadContentWorker(val context: Context, params: WorkerParameter
|
|||
videoInfo = videoInfo?.copy(
|
||||
thumbnailUrl = if (thumbnailEncryptedFileInfo == null) thumbnailUrl else null,
|
||||
thumbnailFile = thumbnailEncryptedFileInfo?.copy(url = thumbnailUrl),
|
||||
width = newAttachmentAttributes?.newWidth ?: videoInfo.width,
|
||||
height = newAttachmentAttributes?.newHeight ?: videoInfo.height,
|
||||
// FIXME for now, the video size is not updated, but if it was, this code is not working.
|
||||
// width = newAttachmentAttributes?.newWidth ?: videoInfo.width,
|
||||
// height = newAttachmentAttributes?.newHeight ?: videoInfo.height,
|
||||
size = newAttachmentAttributes?.newFileSize ?: videoInfo.size
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue