Commit 50b9ad3 1 parent 3d4280e commit 50b9ad3 Copy full SHA for 50b9ad3
File tree 1 file changed +13
-0
lines changed
library/src/androidTest/java/org/xmtp/android/library
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,9 @@ class GroupTest {
99
99
assert (boGroup.id.isNotEmpty())
100
100
assert (alixGroup.id.isNotEmpty())
101
101
102
+ assertEquals(boClient.contacts.consentList.groupState(boGroup.id), ConsentState .ALLOWED )
103
+ assertEquals(alixClient.contacts.consentList.groupState(alixGroup.id), ConsentState .UNKNOWN )
104
+
102
105
boGroup.addMembers(listOf (caro.walletAddress))
103
106
runBlocking { alixGroup.sync() }
104
107
assertEquals(alixGroup.memberAddresses().size, 3 )
@@ -263,6 +266,16 @@ class GroupTest {
263
266
}
264
267
}
265
268
269
+ @Test
270
+ fun testGroupStartsWithAllowedState () {
271
+ val group = boClient.conversations.newGroup(listOf (alix.walletAddress))
272
+ group.send(" howdy" )
273
+ group.send(" gm" )
274
+ runBlocking { group.sync() }
275
+ assert (boClient.contacts.isGroupAllowed(group.id))
276
+ assertEquals(boClient.contacts.consentList.groupState(group.id), ConsentState .ALLOWED )
277
+ }
278
+
266
279
@Test
267
280
fun testCanSendMessageToGroup () {
268
281
val group = boClient.conversations.newGroup(listOf (alix.walletAddress))
You can’t perform that action at this time.
0 commit comments