Skip to content

[Chat] Remove AttachmentMetadata#4217

Merged
Leah-Xia-Microsoft merged 31 commits intomainfrom
leahxia/remove-AttachmentMetadata
Mar 6, 2024
Merged

[Chat] Remove AttachmentMetadata#4217
Leah-Xia-Microsoft merged 31 commits intomainfrom
leahxia/remove-AttachmentMetadata

Conversation

@Leah-Xia-Microsoft
Copy link
Copy Markdown
Member

What

Remove AttachmentMetadata and directly use FileMetadata instead.

Why

How Tested

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

@Leah-Xia-Microsoft Leah-Xia-Microsoft requested review from a team as code owners March 5, 2024 06:53
@Leah-Xia-Microsoft Leah-Xia-Microsoft requested review from AmyL219, jimchou-dev, jpeng-ms and vhuseinova-msft and removed request for a team March 5, 2024 06:53
Base automatically changed from feature/removeInlineImageMetadata to main March 5, 2024 18:10
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 5, 2024

Comment thread packages/react-components/review/beta/react-components.api.md
const isShowDownloadIcon = useCallback((attachment: AttachmentMetadata): boolean => {
/* @conditional-compile-remove(file-sharing) */
return attachment.attachmentType === 'file' && attachment.payload?.teamsFileAttachment !== 'true';
return attachment.payload?.teamsFileAttachment !== 'true';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are teamsFileAttachments?

export interface AttachmentMetadata {
extension: string;
name: string;
url: string;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about id, payload ? are these 2 never GA-ed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about id, payload ? are these 2 never GA-ed?

Yes id and payload is under the feature flag while the rest somehow was released to GA.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about id, payload ? are these 2 never GA-ed?

Actually this is the react components api view not the react communication one.

@Leah-Xia-Microsoft Leah-Xia-Microsoft enabled auto-merge (squash) March 6, 2024 00:59
Comment thread packages/react-components/src/components/FileDownloadCards.test.tsx Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 6, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 6, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 6, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 6, 2024

@Leah-Xia-Microsoft Leah-Xia-Microsoft merged commit 82ed831 into main Mar 6, 2024
@Leah-Xia-Microsoft Leah-Xia-Microsoft deleted the leahxia/remove-AttachmentMetadata branch March 6, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants