Watch
1
0
Fork
You've already forked mautrix-whatsapp
0
mirror of https://github.com/mautrix/whatsapp.git synced 2026-11-09 23:59:17 -05:00

Compare commits

...
Author SHA1 Message Date
Nick Mills-Barrett
2f93633ed7
handlewhatsapp: request app state recovery when full sync fails to fetch
Only decode errors emit AppStateSyncError, so a full sync that failed while fetching (e.g. a 403 on the snapshot download) was just logged and the collection stayed broken for good.
Escalate any full sync error to the phone recovery request.
2026-10-06 11:55:41 +01:00

View file

@ -984,6 +984,7 @@ func (wa *WhatsAppClient) handleWAAppStateSyncError(ctx context.Context, evt *ev
err := wa.Client.FetchAppState(ctx, evt.Name, true, false)
if err != nil {
log.Err(err).Msg("Full app state sync failed")
wa.handleWAAppStateSyncError(ctx, &events.AppStateSyncError{Name: evt.Name, FullSync: true, Error: err})
} else {
log.Debug().Msg("Full app state sync succeeded")
}