Skip to content

Commit

Permalink
handlegmessages: do minimal sync on mobile db sync complete event
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 15, 2024
1 parent eb8a648 commit 82df896
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/connector/handlegmessages.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ func (gc *GMClient) handleUserAlert(ctx context.Context, v *gmproto.UserAlertEve
}
gc.noDataReceivedRecently = false
gc.lastDataReceived = time.Now()
case gmproto.AlertType_MOBILE_DATABASE_SYNC_COMPLETE:
log.Debug().Msg("Making minimal sync due to mobile database sync complete event")
go gc.SyncConversations(ctx, gc.lastDataReceived, true)
case gmproto.AlertType_BROWSER_INACTIVE_FROM_TIMEOUT:
gc.browserInactiveType = GMBrowserInactiveTimeout
becameInactive = true
Expand Down

0 comments on commit 82df896

Please sign in to comment.