-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove download links from user-uploaded attachments without thumbnails #2262
Conversation
We probably need tests. Should all current tests be passing right now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should wait until #2206 is merged. |
Hi, What is the solution for this to work? i am using the latest webchat.js in my web chat and still i see the download icon for the uploaded documents. Can anyone provide me some help here. enableUploadThumbnail is set to false. Do i have to add anything else to style options or am i missing something here? |
If you need these changes immediately, please see our documentation on pointing to our MyGet feed for latest bits. |
…ls (microsoft#2262) * Add upload attachment renderer * Check thumbnail * Update PR number * Fix propTypes * Fix render error for text attachment * Update non-photo upload PNGs
Fixes #2248.
Changelog Entry
Fixed
Description
We disabled links to user-uploaded attachment on our servers. This PR disable the links on the client if the attachment does not have a thumbnail. The thumbnail work is in PR #2206.
It would looks like this:
Specific Changes
UploadAttachment
renderer, which is very similar toDownloadAttachment
but without linksUploadAttachment
in the attachment middleware, will use the renderer if the attachment is from user and does not have a thumbnail