diff --git a/Sources/Sentry/SentrySDK.m b/Sources/Sentry/SentrySDK.m index 348e2556c73..886d1e25727 100644 --- a/Sources/Sentry/SentrySDK.m +++ b/Sources/Sentry/SentrySDK.m @@ -384,7 +384,8 @@ + (void)captureEnvelope:(SentryEnvelope *)envelope + (void)storeEnvelope:(SentryEnvelope *)envelope { if (nil != [SentrySDK.currentHub getClient]) { - [[SentrySDK.currentHub getClient] storeEnvelope:envelope]; + [[SentrySDK.currentHub getClient] + storeEnvelope:[SentrySDK.currentHub updateSessionState:envelope]]; } } diff --git a/Sources/Sentry/include/SentryHub+Private.h b/Sources/Sentry/include/SentryHub+Private.h index f443ff3b13d..2a75a8eeb9e 100644 --- a/Sources/Sentry/include/SentryHub+Private.h +++ b/Sources/Sentry/include/SentryHub+Private.h @@ -62,6 +62,8 @@ SentryHub () - (void)captureEnvelope:(SentryEnvelope *)envelope; +- (SentryEnvelope *)updateSessionState:(SentryEnvelope *)envelope; + @end NS_ASSUME_NONNULL_END