Skip to content

Commit

Permalink
fix: comment regarding screenshots attached to crashes (#4122)
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight authored Jun 28, 2024
1 parent 038edae commit 4bad5f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Sentry/SentryScreenshotIntegration.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ - (void)uninstall
{

// We don't take screenshots if there is no exception/error.
// We don't take screenshots if the event is a crash or metric kit event.
// We don't take screenshots if the event is a metric kit event.
// Screenshots are added via an alternate codepath for crashes, see
// sentrycrash_setSaveScreenshots in SentryCrashC.c
if ((event.exceptions == nil && event.error == nil) || event.isCrashEvent
# if SENTRY_HAS_METRIC_KIT
|| [event isMetricKitEvent]
Expand Down

0 comments on commit 4bad5f9

Please sign in to comment.