diff --git a/example/src/tests/groupTests.ts b/example/src/tests/groupTests.ts index 68d6cd818..d4459baea 100644 --- a/example/src/tests/groupTests.ts +++ b/example/src/tests/groupTests.ts @@ -1010,6 +1010,8 @@ test('can list groups', async () => { `Group 2 url for alix should be www.group2image.com but was ${alixGroup2?.imageUrlSquare}` ) + assert(boGroup1?.isGroupActive === true, `Group 1 should be active for bo`) + return true }) @@ -1343,7 +1345,9 @@ test('can make a group with admin permissions', async () => { if ((await group.permissionPolicySet()).addMemberPolicy !== 'admin') { throw Error( - `Group permission level should be admin but was ${(await group.permissionPolicySet()).addMemberPolicy}` + `Group permission level should be admin but was ${ + (await group.permissionPolicySet()).addMemberPolicy + }` ) } diff --git a/src/lib/Group.ts b/src/lib/Group.ts index 96de1fcfe..0f8a3cd52 100644 --- a/src/lib/Group.ts +++ b/src/lib/Group.ts @@ -41,7 +41,7 @@ export class Group< creatorInboxId: InboxId topic: string name: string - isGroupActive: boolean + isActive: boolean imageUrlSquare: string description: string // pinnedFrameUrl: string @@ -54,7 +54,7 @@ export class Group< this.topic = params.topic this.creatorInboxId = params.creatorInboxId this.name = params.name - this.isGroupActive = params.isGroupActive + this.isGroupActive = params.isActive this.imageUrlSquare = params.imageUrlSquare this.description = params.description // this.pinnedFrameUrl = params.pinnedFrameUrl