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

Check before trying to refresh messages for a specific mailbox if this one has already been open once #1955

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tevincent
Copy link
Contributor

@tevincent tevincent commented Jul 10, 2024

This is to avoid a huge amount of Sentry logs (We received a Notification, but we failed to show it) when we try to refresh an unopened mailbox.

fetchMessagesManager.execute(scope = this, user.id, mailbox)
val mailboxes = mailboxController.getMailboxes(user.id)
mailboxes.forEach { mailbox ->
val realm = RealmDatabase.newMailboxContentInstance(user.id, mailbox.mailboxId)
Copy link
Member

Choose a reason for hiding this comment

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

I can't see when this realm is closed.

@tevincent tevincent force-pushed the failed-show-notif-sentry branch 3 times, most recently from d2873a2 to f2f53b8 Compare July 11, 2024 05:58
@tevincent tevincent requested a review from sirambd July 12, 2024 06:59
Copy link

sonarcloud bot commented Jul 12, 2024

@tevincent tevincent enabled auto-merge July 12, 2024 14:03
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