Skip to content

Commit

Permalink
fix: Group is Active
Browse files Browse the repository at this point in the history
Updated params to match native params
Updated test
  • Loading branch information
Alex Risch authored and Alex Risch committed Aug 5, 2024
1 parent 94867b1 commit f808d51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion example/src/tests/groupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down Expand Up @@ -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
}`
)
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class Group<
creatorInboxId: InboxId
topic: string
name: string
isGroupActive: boolean
isActive: boolean
imageUrlSquare: string
description: string
// pinnedFrameUrl: string
Expand All @@ -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
Expand Down

0 comments on commit f808d51

Please sign in to comment.