Skip to content

Commit

Permalink
addPersona(String, MetadataLifespan) wasn't forwarding the MetadataLi…
Browse files Browse the repository at this point in the history
…fespan
  • Loading branch information
ArielDemarco committed Aug 1, 2024
1 parent a11058b commit d66cd51
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 d66cd51

Please sign in to comment.