mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
feat(BRIDGE-97): added repair button telemetry
(cherry picked from commit 85a91c5572)
This commit is contained in:
committed by
Xavier Michelon
parent
f1f63c1d03
commit
db9902e70b
@ -727,12 +727,18 @@ func (user *User) VerifyResyncAndExecute() {
|
||||
user.log.WithError(err).Error("Failed to disable re-sync flag in user vault. UserID:", user.ID())
|
||||
}
|
||||
|
||||
if err := user.ResyncIMAP(); err != nil {
|
||||
user.SendRepairDeferredTrigger(context.Background())
|
||||
if err := user.resyncIMAP(); err != nil {
|
||||
user.log.WithError(err).Error("Failed re-syncing IMAP for userID", user.ID())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (user *User) ResyncIMAP() error {
|
||||
func (user *User) TriggerRepair() error {
|
||||
user.SendRepairTrigger(context.Background())
|
||||
return user.resyncIMAP()
|
||||
}
|
||||
|
||||
func (user *User) resyncIMAP() error {
|
||||
return user.imapService.Resync(context.Background())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user