Skip to content

Commit

Permalink
fix: Ensure Sentry user is set earlier to detect migration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeWeidmann committed May 29, 2024
1 parent ac077f2 commit f6f3e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class NotificationViewController: UIViewController, UNNotificationContentExtensi
override func viewDidLoad() {
super.viewDidLoad()

ModelMigrator().migrateRealmIfNeeded()
SentryDebug.setUserId(accountManager.currentUserId)
ModelMigrator().migrateRealmIfNeeded()

activityIndicator.translatesAutoresizingMaskIntoConstraints = false
activityIndicator.hidesWhenStopped = true
Expand Down
2 changes: 1 addition & 1 deletion MailNotificationServiceExtension/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ final class NotificationService: UNNotificationServiceExtension {

override init() {
super.init()
ModelMigrator().migrateRealmIfNeeded()
SentryDebug.setUserId(accountManager.currentUserId)
ModelMigrator().migrateRealmIfNeeded()
}

func prepareEmptyMessageNotification(in mailbox: Mailbox) {
Expand Down

0 comments on commit f6f3e2c

Please sign in to comment.