Skip to content

Commit

Permalink
return message id
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Apr 18, 2024
1 parent 3d9261c commit 88b2d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/XMTPiOS/Group.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ public struct Group: Identifiable, Equatable, Hashable {
try await client.contacts.allowGroup(groupIds: [id])
}

try await ffiGroup.send(contentBytes: encodedContent.serializedData())
return id.toHex
let messageId = try await ffiGroup.send(contentBytes: encodedContent.serializedData())
return messageId.toHex
}

public func prepareMessage<T>(content: T, options: SendOptions?) async throws -> EncodedContent {
Expand Down

0 comments on commit 88b2d85

Please sign in to comment.