3336
history := resp.History
3337
if history == nil && resp.RawHistory != nil { //nolint:staticcheck
3339
>
// Process search attributes only when using RawHistory.
3340
>
// RawHistory contains auto-deserialized raw bytes that bypass history service's SA processing.
3341
>
// History field means it was already processed by history service.
3342
>
if err := api.ProcessOutgoingSearchAttributes(e.saProvider, e.saMapperProvider, history.Events, ns, e.visibilityManager); err != nil {
3343
return nil, err
3344
}