Skip to content

Commit

Permalink
fix send encoded content in Conversation class
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Dec 12, 2024
1 parent 0f4821b commit 4516605
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 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

0 comments on commit 4516605

Please sign in to comment.