Skip to content

fix: restore file previews in trash and shares views - #317

Open
suet-kei-chan wants to merge 1 commit into
customisation-stable33-33.0.9-1from
nmc/6717-incorrect-file-thumbnail-icons-in-shares-and-trash
Open

suet-kei-chan wants to merge 1 commit into
customisation-stable33-33.0.9-1from
nmc/6717-incorrect-file-thumbnail-icons-in-shares-and-trash

Conversation

@suet-kei-chan

Copy link
Copy Markdown

Nodes in the trashbin and shares views carry no usable etag: the trashbin DAV getetag is an all-digit timestamp that the XML parser turns into a number, so webdav-client nulls it, and the shares list comes from the OCS API which has no etag at all.

Both then fell back to mtime.getTime(), a number, and the following .slice() threw inside the surrounding try/catch. The swallowed error left previewUrl undefined, so every file rendered the generic file icon instead of its thumbnail or mime icon.

  • Resolves: #

Summary

TODO

  • ...

Checklist

Nodes in the trashbin and shares views carry no usable etag: the
trashbin DAV getetag is an all-digit timestamp that the XML parser
turns into a number, so webdav-client nulls it, and the shares list
comes from the OCS API which has no etag at all.

Both then fell back to mtime.getTime(), a number, and the following
.slice() threw inside the surrounding try/catch. The swallowed error
left previewUrl undefined, so every file rendered the generic file
icon instead of its thumbnail or mime icon.
@suet-kei-chan suet-kei-chan self-assigned this Oct 5, 2026
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.

1 participant