riverctl v0.1.6
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
riverctlinstead ofriver - Fixed debug command API usage
- Corrected help text to show
β¨ 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