File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,13 @@ export const download = ({ encryptedUrl }) => {
36
36
icon,
37
37
label,
38
38
Component : makeComponent ( label , icon ) ,
39
- action : ( docs , { client, webviewIntent } ) =>
40
- downloadFile ( { client, file : docs [ 0 ] , url : encryptedUrl , webviewIntent } )
39
+ action : ( docs , { client, webviewIntent, driveId } ) =>
40
+ downloadFile ( {
41
+ client,
42
+ file : docs [ 0 ] ,
43
+ url : encryptedUrl ,
44
+ webviewIntent,
45
+ driveId
46
+ } )
41
47
}
42
48
}
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export class FileImageLoader extends Component {
142
142
throw new Error ( 'No pdf files fallback' )
143
143
}
144
144
const src = await client
145
- . collection ( 'io.cozy.files' )
145
+ . collection ( 'io.cozy.files' , { driveId : file . driveId } )
146
146
. getDownloadLinkById ( this . getFileId ( file ) , file . name )
147
147
await checkImageSource ( src )
148
148
if ( this . _mounted ) {
You can’t perform that action at this time.
0 commit comments