Skip to content

Commit

Permalink
[FIX] addPersona with string wasn't forwarding MetadataLifespan (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielDemarco authored Aug 1, 2024
1 parent a11058b commit 07d8fa1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ extension MetadataHandler {
/// - Note: This method is for Objective-C compatibility. In Swift, it is
/// recommended to use ``PersonaTag`` and define custom persona tags as static properties.
@objc public func add(persona: String, lifespan: MetadataLifespan = .session) throws {
try add(persona: PersonaTag(persona))
try add(persona: PersonaTag(persona), lifespan: lifespan)
}

/// Retrieve the current set of persona tags as strings.
Expand Down

0 comments on commit 07d8fa1

Please sign in to comment.