Fix issue when sending video in encrypted room
This commit is contained in:
parent
ea77686746
commit
c13ab62187
|
@ -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)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue