-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Download E.cash attachments immediately #3066
Conversation
This needs to be on HOLD until https://github.com/Expensify/Web-Expensify/pull/31009 is merged and deployed to production. |
https://github.com/Expensify/Web-Expensify/pull/31009 was deployed to prod yesterday, so this is ready for review 👍 |
rel, | ||
target, | ||
children, | ||
style, |
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.
Should this include the shouldDownloadFile
prop since it is being passed from AnchorWithAuthToken.js
. If it is not necessary to have shouldDownloadFile
here because it is passed in ...props
, then is it redundant when we have shouldDownloadFile
in the props for BaseAnchorForCommentsOnly/index.native.js
?
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.
This is a good question.
Should this include the shouldDownloadFile prop since it is being passed from AnchorWithAuthToken.js
It's not necessary because it's not being used in this file. It is passed to the nested Text
in ...props
, but because the Text
doesn't take a shouldDownloadFile
prop it just has no effect.
is it redundant when we have shouldDownloadFile in the props for BaseAnchorForCommentsOnly/index.native.js
It's not redundant, because the shouldDownloadFile
prop is used to determine onPress
prop of the Text
component in BaseAnchorForCommentsOnly/index.native.js
. Then it's also passed to the Text
component as part of ...props
, but like the web implementation just has no effect.
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
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Details
Passes an auth token in the chat attachment URL, if necessary.
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/154254
Tests / QA Steps
Upload Attachment
and upload a.zip
file.Tested On
Screenshots
Web
DownloadAttachmentMWeb.mov
Mobile Web
DownloadAttachmentMWeb.mov
Desktop
DownloadAttachmentsDesktop.mov
iOS
DownloadAttachmentiOS.mov
Android