Skip to content

Commit

Permalink
add return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 24, 2024
1 parent 1d00582 commit d1d70d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/XMTPiOS/Conversation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ public enum Conversation: Sendable {
case .v2(_):
throw ConversationError.v2NotSupported("processMessage")
case let .group(group):
try await group.processMessage(envelopeBytes: envelopeBytes)
return try await group.processMessage(envelopeBytes: envelopeBytes)
case let .dm(dm):
try await dm.processMessage(envelopeBytes: envelopeBytes)
return try await dm.processMessage(envelopeBytes: envelopeBytes)
}
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/XMTPiOS/Extensions/Ffi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ extension FfiConversation {

func toConversation(client: Client) throws -> Conversation {
if (try groupMetadata().conversationType() == "dm") {
Conversation.dm(self.dmFromFFI(client: client))
return Conversation.dm(self.dmFromFFI(client: client))
} else {
Conversation.group(self.groupFromFFI(client: client))
return Conversation.group(self.groupFromFFI(client: client))
}
}
}
Expand Down

0 comments on commit d1d70d6

Please sign in to comment.