From 5dc83d64c1197d6ebebd2a88ac794e21170dee4b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 9 Jul 2019 14:48:57 +0200 Subject: [PATCH] Fix compilation issue --- .../riotx/features/home/room/detail/RoomDetailViewModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt b/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt index d51b63d8..69c35b38 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/detail/RoomDetailViewModel.kt @@ -35,6 +35,7 @@ import im.vector.matrix.android.api.session.file.FileService import im.vector.matrix.android.api.session.room.model.Membership import im.vector.matrix.android.api.session.room.model.message.MessageContent import im.vector.matrix.android.api.session.room.model.message.MessageType +import im.vector.matrix.android.api.session.room.model.message.getFileUrl import im.vector.matrix.android.api.session.room.timeline.TimelineEvent import im.vector.matrix.android.internal.crypto.attachments.toElementToDecrypt import im.vector.matrix.rx.rx @@ -452,7 +453,7 @@ class RoomDetailViewModel @AssistedInject constructor(@Assisted initialState: Ro FileService.DownloadMode.TO_EXPORT, action.eventId, action.messageFileContent.getFileName(), - action.messageFileContent.getSafeUrl(), + action.messageFileContent.getFileUrl(), action.messageFileContent.encryptedFileInfo?.toElementToDecrypt(), object : MatrixCallback { override fun onSuccess(data: File) {