Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

No description provided.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
Copy link
Contributor

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 modifies the Gmail integration to prevent notifications for messages during the initial sync process, while still allowing notifications for subsequent updates.

  • Adds a SyncOptions parameter to message saving methods to control notification behavior
  • Implements tracking of the last sync date to differentiate between initial sync and incremental updates
  • Updates the sync logic to disable notifications during the first sync but enable them for follow-up syncs

Reviewed Changes

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

Show a summary per file
File Description
services/gmail/pod-gmail/src/message/v2/message.ts Adds SyncOptions parameter to saveMessage method in V2 message manager
services/gmail/pod-gmail/src/message/v1/message.ts Adds SyncOptions parameter to saveMessage method in V1 message manager
services/gmail/pod-gmail/src/message/types.ts Updates IMessageManager interface to include optional SyncOptions parameter
services/gmail/pod-gmail/src/message/syncState.ts Adds methods to track last sync date for determining initial vs incremental syncs
services/gmail/pod-gmail/src/message/sync.ts Implements logic to disable notifications during initial sync and pass options through sync methods
services/gmail/pod-gmail/src/tests/sync.test.ts Updates test expectations to match new method signatures with SyncOptions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

ArtyomSavchenko and others added 2 commits August 13, 2025 16:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Artyom Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
@aonnikov aonnikov merged commit c4f9953 into develop Aug 13, 2025
15 checks passed
@aonnikov aonnikov deleted the gmail-no-notify branch August 13, 2025 15:13
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