Skip to content
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

feat(ComposeMessage): Preview attachment on click #1233

Merged
merged 6 commits into from
Jan 18, 2024
Merged

Conversation

Ambrdctr
Copy link
Contributor

No description provided.

@Ambrdctr Ambrdctr requested a review from a team as a code owner January 18, 2024 13:08
@@ -56,6 +60,18 @@ struct AttachmentUploadCell: View {
IndeterminateProgressView(indeterminate: uploadTask.progress == 0, progress: uploadTask.progress)
.opacity(uploadTask.progress == 1 ? 0 : 1)
}
.onTapGesture {
guard let attachment = attachment.thaw()?.freezeIfNeeded() else { return }
Copy link
Member

Choose a reason for hiding this comment

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

Can we move this large function outside the view ?

Copy link

sonarcloud bot commented Jan 18, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@PhilippeWeidmann PhilippeWeidmann merged commit 79f88f4 into master Jan 18, 2024
5 checks passed
@PhilippeWeidmann PhilippeWeidmann deleted the attachment branch January 18, 2024 14:30
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.

None yet

2 participants