From b7f6c1c562f32d318e784bd63eb464e19b6a17a9 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 6 Mar 2025 14:58:04 -0800 Subject: [PATCH] Sentry: Replace deprecated SentryUserFeedback use Replace with newer SentryFeedback. Signed-off-by: Christopher Snowhill --- Application/AppController.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Application/AppController.m b/Application/AppController.m index 6a9db1eb1..601383c78 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -372,13 +372,9 @@ static BOOL consentLastEnabled = NO; FeedbackController *fbcon = [[FeedbackController alloc] init]; [fbcon performSelectorOnMainThread:@selector(showWindow:) withObject:nil waitUntilDone:YES]; if([fbcon waitForCompletion]) { - SentryUserFeedback *userFeedback = [[SentryUserFeedback alloc] initWithEventId:[event eventId]]; + SentryFeedback *feedback = [[SentryFeedback alloc] initWithMessage:[fbcon comments] name:[fbcon name] email:[fbcon email] source:SentryFeedbackSourceCustom associatedEventId:event.eventId attachments:nil]; - userFeedback.comments = [fbcon comments]; - userFeedback.email = [fbcon email]; - userFeedback.name = [fbcon name]; - - [SentrySDK captureUserFeedback:userFeedback]; + [SentrySDK captureFeedback:feedback]; } }; }];