We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e4e79c commit 5d25b4cCopy full SHA for 5d25b4c
Sources/XMTPiOS/Conversation.swift
@@ -31,18 +31,14 @@ public enum Conversation: Sendable {
31
}
32
33
public func consentState() async -> ConsentState {
34
- let client: Client
35
-
36
switch self {
37
case .v1(let conversationV1):
38
- client = conversationV1.client
+ return await conversationV1.client.contacts.consentList.state(address: peerAddress)
39
case .v2(let conversationV2):
40
- client = conversationV2.client
+ return await conversationV2.client.contacts.consentList.state(address: peerAddress)
41
case let .group(group):
42
- client = group.client
+ return await group.client.contacts.consentList.groupState(groupId: group.id)
43
44
45
- return await client.contacts.consentList.state(address: peerAddress)
46
47
48
public var version: Version {
0 commit comments