-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Android - Video Attachment shows Link Preview for OldDot #22933
Comments
Triggered auto assignment to @twisterdotcom ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.No link preview should appear for videos. What is the root cause of that problem?Here is a condition show preview link. App/src/pages/home/report/ReportActionItem.js Lines 347 to 351 in b9508b6
When the video is uploaded we will have the linkMetadata because the originalMessage.html is tag a so it will show a preview link What changes do you think we should make in order to solve the problem?We should add the condition if the comment is an attachment we will not show the preview link here: {!isHidden && !props.action.isAttachment && !_.isEmpty(props.action.linkMetadata) && ( What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.When an mp4 attachment is sent in any chat ,a link preview to oldDot is shown. What is the root cause of that problem?Since attachments are being stored and served via oldDot App/src/pages/home/report/ReportActionItem.js Lines 347 to 351 in b9508b6
What changes do you think we should make in order to solve the problem?This should be handled on the backend and checked if the link is an attachment which can be easily checked because attachment links have the format What alternative solutions did you explore? (Optional)If the team wants to handle this on the frontend, this const should be converted to
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Video Attachment shows Link Preview for OldDot. What is the root cause of that problem?For video attachment, report action have a message like below. This is a valid url, so the App/src/pages/home/report/ReportActionItem.js Lines 144 to 152 in 78f8a70
So the url preview is displayed for video attachment. What changes do you think we should make in order to solve the problem?We should add checking if url is a video file or not. - if (_.isEqual(downloadedPreviews.current, urls) || props.action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) {
+ if (_.isEqual(downloadedPreviews.current, urls) || props.action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || FileUtils.getFileType(urls[0]) === CONST.ATTACHMENT_FILE_TYPE.VIDEO) { What alternative solutions did you explore? (Optional)None. |
I think we should close this given we're building video playback anyway: #20471 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
No link preview should appear for mp4 videos.
Actual Result:
Link preview appears with link to OldDot.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.39-11
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
link-preview.mp4
Screen_Recording_20230715_072700_Expensify.Chat.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Talha345
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689338090641839
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: