mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
GODT-2047: Clear last event ID when clearing sync status
This commit is contained in:
@ -74,14 +74,13 @@ func (user *User) handleRefreshEvent(ctx context.Context, refresh liteapi.Refres
|
||||
|
||||
l.Info("Handling refresh event")
|
||||
|
||||
context := map[string]interface{}{
|
||||
if err := user.reporter.ReportMessageWithContext("Warning: refresh occurred", map[string]interface{}{
|
||||
"EventLoop": map[string]interface{}{
|
||||
"EventID": eventID,
|
||||
"Refresh": refresh,
|
||||
},
|
||||
}
|
||||
if sentryErr := user.reporter.ReportMessageWithContext("Warning: refresh occurred", context); sentryErr != nil {
|
||||
l.WithError(sentryErr).Error("Failed to report refresh to sentry")
|
||||
}); err != nil {
|
||||
l.WithError(err).Error("Failed to report refresh to sentry")
|
||||
}
|
||||
|
||||
// Cancel and restart ongoing syncs.
|
||||
|
||||
Reference in New Issue
Block a user