Conversation
|
/backport to stable25 |
Signed-off-by: John Molakvoæ <[email protected]>
|
|
||
| // show file | ||
| this.currentFile = new File(fileInfo, mime, handler.component) | ||
| this.currentFile = new File(fileInfo, mime, this.components[mime]) |
There was a problem hiding this comment.
If we use the original handler instead of the registered aliases, we break all aliases on file opening.
There was a problem hiding this comment.
We could check again if the override handler is specified, if so we can use the original handler coponent?
const component = overrideHandlerId ? handler.component : this.components[mime];
this.currentFile = new File(fileInfo, mime, component)|
Can confirm, this fixes the issue on my nextcloud 25.0.1 instance. |
|
Doesn't this revert the behaviour back to always use the viewer compontent based on mime type? This would then break the |
|
It would be nice if this can be worked on. My app camerarawpreviews has quite a few users, and currently does not work with Viewer. I know it did before though. |
|
@ariselseng Right now this PR is set in draft mode so it's probably being overlooked for formal reviews. Seems to have some positive feedback from testers, but also an outstanding question from @Raudius. I'm not familiar with this area of code so I don't feel qualified commenting one way or another. @skjnldsv: This is your PR - thoughts? Okay to pull this out of draft? Need us find some more folks to test? |
Fix regression by #1273
Fix #1450