From 355169475dc3d5c51755a1e7b05b623c2cea07f1 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 2a60c5073..33cbb7636 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -348,13 +348,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]; } }; }];