Skip to content

Commit

Permalink
Add missing type field
Browse files Browse the repository at this point in the history
  • Loading branch information
jguz-pubnub committed Jan 2, 2025
1 parent bd28bd4 commit 9d2d8bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/PubNub/KMP/Wrappers/KMPAppContextEventResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,10 @@ public class KMPChannelMetadata: NSObject {
}

@objc
public init(id: String, custom: KMPAnyJSON, status: String?) {
public init(id: String, custom: KMPAnyJSON, type: String?, status: String?) {
self.id = id
self.custom = custom.asMap()
self.type = type
self.status = status
}
}
Expand Down Expand Up @@ -255,10 +256,12 @@ public class KMPUserMetadata: NSObject {
public init(
id: String,
custom: KMPAnyJSON?,
type: String?,
status: String?
) {
self.id = id
self.custom = custom?.asMap()
self.type = type
self.status = status
}

Expand Down

0 comments on commit 9d2d8bb

Please sign in to comment.