Skip to content

Commit

Permalink
Remove Sentry about "No new Message" notification
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Jun 10, 2024
1 parent 2f96571 commit d74d43e
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,12 @@ class FetchMessagesManager @Inject constructor(
if (mailboxGroupNotifications.size == 1) cancel(mailbox.notificationGroupId)
}

/**
* When we fetched Messages, we didn't find any new Message.
* It means we already got them all when we received a previous notification.
* We can leave safely.
*/
if (threadsWithNewMessages.isEmpty()) {
SentryDebug.sendFailedNotification(
reason = "No new Message",
sentryLevel = SentryLevel.WARNING,
userId = userId,
mailboxId = mailbox.mailboxId,
messageUid = sentryMessageUid,
mailbox = mailbox,
)

realm.close()
return
}
Expand Down

0 comments on commit d74d43e

Please sign in to comment.