Skip to content

Conversation

nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented Nov 14, 2024

  • Cleanup inviting another account
  • Listing invitations
  • Cleanup playground UI (showing debugging UI)

@nikgraf nikgraf requested a review from cmwhited November 14, 2024 17:23
});

return result.map((invitation) => {
const state = JSON.parse(invitation.space.events[0].state) as SpaceState;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, could we use the effect Schema handling to encode/decode and validate the space object instead of type-casting? (I am learning effect more and more, so could be wrong here, but seems safer?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! yeah, when I wrote the code I thought: this always only can be a valid state. But you are right! better to be safe than sorry :)

@nikgraf nikgraf merged commit 61bcf41 into main Nov 15, 2024
1 check passed
@nikgraf nikgraf deleted the invite-account branch November 15, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants