Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chatlist image thumbnails not showing on Win #4139

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Sep 17, 2024

The url() wants a string, so let's give it a string. Otherwise it treats backwards slashes, which used in Windows paths, as escape characters, which results in an invalid URL.

The bug was introduced in 72bb581,
then there was a fix for something in 87ba793.

Though it feels like there should be a proper way to convert file paths to URL...

I checked some other places where url( is used and didn't find a problem. Maybe it's best to unify such usage, and more thoroughly explain in JSON-RPC that those are file paths and not URLs.

@WofWca WofWca force-pushed the wofwca/fix-windows-chatlist-image-thumbnail branch from 64a7806 to 3d42f16 Compare September 17, 2024 11:00
The `url()` wants a string, so let's give it a string.
Otherwise it treats backwards slashes, which used in Windows paths,
as escape characters, which results in an invalid URL.

The bug was introduced in 72bb581,
then there was a fix for something in 87ba793.

Though it feels like there should be a proper way to convert file
paths to URL...
@WofWca WofWca force-pushed the wofwca/fix-windows-chatlist-image-thumbnail branch from 3d42f16 to 0f45c16 Compare September 17, 2024 11:00
@WofWca WofWca marked this pull request as ready for review September 17, 2024 11:01
@WofWca WofWca requested a review from Simon-Laux September 17, 2024 11:01
@Simon-Laux Simon-Laux merged commit 78e188c into main Sep 18, 2024
7 of 8 checks passed
@Simon-Laux Simon-Laux deleted the wofwca/fix-windows-chatlist-image-thumbnail branch September 18, 2024 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants