Skip to content

riverctl v0.1.6

Choose a tag to compare

@sanity sanity released this 01 Aug 15:18
· 419 commits to main since this release

riverctl v0.1.6

πŸ› Bug Fixes

  • Fixed critical bug where invited users could not send messages (#28)

    • Room state is now properly initialized when accepting invitations
    • Invited users are correctly added to the members list
    • Member info with nicknames is properly created
    • UPDATE operations now succeed for invited users
  • Fixed command name references

    • Corrected help text to show riverctl instead of river
    • Fixed debug command API usage

✨ Improvements

  • Added comprehensive unit tests for invitation flow
  • Added validation to ensure room state initialization is correct
  • Improved error handling and logging during invitation acceptance

πŸ“¦ Installation

cargo install riverctl

πŸ”§ Details

This release fixes a critical issue where users who joined a room via invitation could read messages but not send them. The root cause was that the room state was not being properly initialized when accepting invitations, causing the invited user to not be recognized as a valid member.

The fix ensures that:

  • The actual room state is parsed from the network response
  • The invited user is added to the members list with proper authorization
  • Member info including the user's nickname is created
  • All validation checks pass before storing the state

πŸ§ͺ Testing

All unit tests pass, including new tests specifically for:

  • Room state initialization after invitation acceptance
  • Message validation for invited members
  • Message filtering for non-members