From b4f5b1b2112ad30f80c0fef8bd8de63e035133a0 Mon Sep 17 00:00:00 2001 From: Andrew McKnight Date: Wed, 19 Feb 2025 17:59:58 -0900 Subject: [PATCH] use SentryId instead of String --- .../Swift/Integrations/UserFeedback/SentryFeedback.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Swift/Integrations/UserFeedback/SentryFeedback.swift b/Sources/Swift/Integrations/UserFeedback/SentryFeedback.swift index b444ce61b3..a674d641f0 100644 --- a/Sources/Swift/Integrations/UserFeedback/SentryFeedback.swift +++ b/Sources/Swift/Integrations/UserFeedback/SentryFeedback.swift @@ -25,12 +25,12 @@ class SentryFeedback: NSObject { var attachments: [Data]? /// The event id that this feedback is associated with, like a crash report. - var associatedEventId: String? + var associatedEventId: SentryId? /// - parameters: /// - associatedEventId The ID for an event you'd like associated with the feedback. /// - attachments Data objects for any attachments. Currently the web UI only supports showing one attached image, like for a screenshot. - @objc init(message: String, name: String?, email: String?, source: SentryFeedbackSource = .widget, associatedEventId: String? = nil, attachments: [Data]? = nil) { + @objc init(message: String, name: String?, email: String?, source: SentryFeedbackSource = .widget, associatedEventId: SentryId? = nil, attachments: [Data]? = nil) { self.eventId = SentryId() self.name = name self.email = email @@ -54,7 +54,7 @@ extension SentryFeedback: SentrySerializable { dict["contact_email"] = email } if let associatedEventId = associatedEventId { - dict["associated_event_id"] = associatedEventId + dict["associated_event_id"] = associatedEventId.sentryIdString } dict["source"] = source.rawValue