Skip to content

fix: Invert sendMail and scheduleDraft Matomo #1772

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

valentinperignon
Copy link
Member

No description provided.

@valentinperignon valentinperignon requested review from lebojo and Copilot and removed request for lebojo April 24, 2025 11:24
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the Matomo event tracking in MailCore to correctly invert the event names for sending mail versus scheduling a draft.

  • Inverts the condition in the trackSendMessage function so that "sendMail" is used when draft.scheduleDate is nil, and "scheduleDraft" is used otherwise.

Copy link
Contributor

@lebojo lebojo left a comment

Choose a reason for hiding this comment

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

🎉

Copy link

Copy link

Found 2 unused code occurences

Expand
Mail/Views/New Message/ComposeEditor/EditorDesktopToolbarView.swift:29:8: warning: Struct 'EditorDesktopToolbarView' is unused
Mail/Views/Thread List/DraggedEnvelopeView.swift:22:8: warning: Struct 'DraggedEnvelopeView' is unused

@valentinperignon valentinperignon merged commit 5556208 into master Apr 24, 2025
10 checks passed
@valentinperignon valentinperignon deleted the fix/schedule-matomo branch April 24, 2025 11:35
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.

2 participants