Fix issue when sending video in encrypted room

This commit is contained in:
Benoit Marty 2019-07-08 15:37:39 +02:00
parent ea77686746
commit c13ab62187
1 changed files with 2 additions and 1 deletions

View File

@ -202,9 +202,10 @@ internal class UploadContentWorker(context: Context, params: WorkerParameters) :
thumbnailEncryptedFileInfo: EncryptedFileInfo?): MessageVideoContent {
return copy(
url = if (encryptedFileInfo == null) url else null,
encryptedFileInfo = encryptedFileInfo?.copy(url = url),
videoInfo = videoInfo?.copy(
thumbnailUrl = if (thumbnailEncryptedFileInfo == null) thumbnailUrl else null,
thumbnailFile = thumbnailEncryptedFileInfo?.copy(url = url)
thumbnailFile = thumbnailEncryptedFileInfo?.copy(url = thumbnailUrl)
)
)
}