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 {
|
thumbnailEncryptedFileInfo: EncryptedFileInfo?): MessageVideoContent {
|
||||||
return copy(
|
return copy(
|
||||||
url = if (encryptedFileInfo == null) url else null,
|
url = if (encryptedFileInfo == null) url else null,
|
||||||
|
encryptedFileInfo = encryptedFileInfo?.copy(url = url),
|
||||||
videoInfo = videoInfo?.copy(
|
videoInfo = videoInfo?.copy(
|
||||||
thumbnailUrl = if (thumbnailEncryptedFileInfo == null) thumbnailUrl else null,
|
thumbnailUrl = if (thumbnailEncryptedFileInfo == null) thumbnailUrl else null,
|
||||||
thumbnailFile = thumbnailEncryptedFileInfo?.copy(url = url)
|
thumbnailFile = thumbnailEncryptedFileInfo?.copy(url = thumbnailUrl)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue