Skip to content

Commit

Permalink
Add Key Material Function (#222)
Browse files Browse the repository at this point in the history
* add ket material field to ios

* bump the podspec
  • Loading branch information
nplasterer authored Jan 25, 2024
1 parent f4f24aa commit 179233c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Sources/XMTP/Conversation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ public enum Conversation: Sendable {
return conversationV2.peerAddress
}
}

public var keyMaterial: Data? {
switch self {
case let .v1(conversationV1):
return nil
case let .v2(conversationV2):
return conversationV2.keyMaterial
}
}

/// An optional string that can specify a different context for a conversation with another account address.
///
Expand Down
2 changes: 1 addition & 1 deletion XMTP.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "XMTP"
spec.version = "0.7.6-alpha0"
spec.version = "0.7.7-alpha0"
spec.summary = "XMTP SDK Cocoapod"

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 179233c

Please sign in to comment.