Skip to content

Commit

Permalink
add the ability to pass in permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Feb 19, 2024
1 parent e55c255 commit 010b9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/XMTPiOS/Conversations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public actor Conversations {
}
}

public func newGroup(with addresses: [String]) async throws -> Group {
public func newGroup(with addresses: [String], permissions: GroupPermissions = .everyoneIsAdmin) async throws -> Group {
guard let v3Client = client.v3Client else {
throw GroupError.alphaMLSNotEnabled
}
Expand Down Expand Up @@ -153,7 +153,7 @@ public actor Conversations {
throw GroupError.memberNotRegistered(erroredAddresses)
}

return try await v3Client.conversations().createGroup(accountAddresses: addresses, permissions: nil).fromFFI(client: client)
return try await v3Client.conversations().createGroup(accountAddresses: addresses, permissions: permissions).fromFFI(client: client)
}

/// Import a previously seen conversation.
Expand Down

0 comments on commit 010b9b3

Please sign in to comment.