Skip to content

feat(Snooze): Unsnooze threads with new message #1754

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 14 commits into from
Apr 10, 2025

Conversation

valentinperignon
Copy link
Member

No description provided.

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 force-pushed the feat/snooze/unsnooze-new-message branch 2 times, most recently from 238747a to 0e1fe71 Compare April 10, 2025 09:40
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.

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

@valentinperignon valentinperignon force-pushed the feat/snooze/unsnooze-new-message branch from 63a4a2c to 696798b Compare April 10, 2025 09:48
@valentinperignon valentinperignon marked this pull request as ready for review April 10, 2025 09:49
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.

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

MailCore/Models/Thread.swift:65

  • Consider providing a default value (e.g., false) for isLastMessageFromFolderSnoozed to ensure a defined state for new Thread instances not initialized via the custom initializer.
@Persisted public var isLastMessageFromFolderSnoozed: Bool

MailCore/Cache/MailboxManager/MailboxManager.swift:127

  • The cast 'as? String?' is redundant; consider using 'as? String' to simplify the code.
let snoozeState = lastMessageFromFolder["snoozeState"] as? String?

@valentinperignon valentinperignon force-pushed the feat/snooze/unsnooze-new-message branch from 696798b to db9f0d5 Compare April 10, 2025 10:39
Copy link
Contributor

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

Just left some minor remarks. Code looks good 👍

@valentinperignon valentinperignon force-pushed the feat/snooze/unsnooze-new-message branch 2 times, most recently from f53993e to d74e64a Compare April 10, 2025 12:36
@valentinperignon valentinperignon force-pushed the feat/snooze/unsnooze-new-message branch from d74e64a to c90e57e Compare April 10, 2025 12:54
Copy link

@valentinperignon valentinperignon merged commit 852f696 into master Apr 10, 2025
10 checks passed
@valentinperignon valentinperignon deleted the feat/snooze/unsnooze-new-message branch April 10, 2025 13:19
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.

3 participants