Skip to content

Commit

Permalink
Fix send encoded content in Conversation class (#446)
Browse files Browse the repository at this point in the history
* fix send encoded content in Conversation class

* update podspec version

---------

Co-authored-by: cameronvoell <cameronvoell@users.noreply.github.com>
  • Loading branch information
cameronvoell and cameronvoell authored Dec 12, 2024
1 parent 0f4821b commit ff8349c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
16 changes: 8 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
}
},
{
"identity" : "libxmtp-swift",
"identity" : "csecp256k1.swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/xmtp/libxmtp-swift.git",
"location" : "https://github.com/tesseract-one/CSecp256k1.swift.git",
"state" : {
"revision" : "f495d4feaab40a0a6a48c1d5a99585de8107f5d2",
"version" : "3.0.1"
"revision" : "cfbd6f540d5084bc96a60af841121472fbe725a3",
"version" : "0.2.0"
}
},
{
"identity" : "secp256k1.swift",
"identity" : "libxmtp-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Boilertalk/secp256k1.swift.git",
"location" : "https://github.com/xmtp/libxmtp-swift.git",
"state" : {
"revision" : "cd187c632fb812fd93711a9f7e644adb7e5f97f0",
"version" : "0.1.7"
"revision" : "bab83b5de3ed4713d50535e61bca281179bf04fd",
"version" : "3.0.10"
}
},
{
Expand Down
7 changes: 3 additions & 4 deletions Sources/XMTPiOS/Conversation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,13 @@ public enum Conversation: Identifiable, Equatable, Hashable {
}

@discardableResult public func send(
encodedContent: EncodedContent, options: SendOptions? = nil
) async throws -> String {
encodedContent: EncodedContent) async throws -> String {
switch self {
case let .group(group):
return try await group.send(
content: encodedContent, options: options)
encodedContent: encodedContent)
case let .dm(dm):
return try await dm.send(content: encodedContent, options: options)
return try await dm.send(encodedContent: encodedContent)
}
}

Expand Down
2 changes: 1 addition & 1 deletion XMTP.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "XMTP"
spec.version = "3.0.14"
spec.version = "3.0.15"
spec.summary = "XMTP SDK Cocoapod"

spec.description = <<-DESC
Expand Down

0 comments on commit ff8349c

Please sign in to comment.