Skip to content

Conversation

@LifeRIP
Copy link
Contributor

@LifeRIP LifeRIP commented Jun 25, 2025

This pull request introduces significant updates to the README.md documentation, refactors several repository and service methods, and temporarily disables certain access control checks in the WebSocket and room management logic. Below is a summary of the most important changes:

Documentation Enhancements

  • Completely revamped README.md with a more structured format, including new sections like "Tecnologías principales," "Endpoints," and "Implementación técnica." Added emojis and tables for better readability and user experience.
  • Expanded the WebSocket and direct chat documentation with detailed examples and response formats for easier integration and testing.

WebSocket and Room Access Control

  • Commented out permission checks in RoomRepository (AddMemberToRoom) and WebSocket ReadPump methods, effectively allowing unrestricted room joining for now. [1] [2]
  • Disabled the CanJoinRoomWebSocket check in RoomService's JoinRoom method, bypassing user validation for room access.

Direct Chat Improvements

  • Updated DirectChatRepository to handle user display names more robustly, ensuring that the current user is always listed second in the UserIDs and DisplayNames arrays. Added fallback display names for unknown users.

Moderation Enhancements

  • Extended ModerationService to include checks for banned users and prevent reporting messages from admins or room owners. Added a dependency on RoomService for privilege validation. [1] [2] [3]

These changes improve the project's documentation and user experience while temporarily relaxing access control for testing purposes. However, the disabled permission checks should be revisited before deployment to ensure proper security.

LifeRIP added 15 commits June 24, 2025 13:07
- Prevents banned users from reporting messages and disallows reporting messages from admins or room owners.
- Introduces a dependency on `RoomService` to verify user privileges and enforces stricter validation for reporting logic.
- Optimizes the retrieval of user display names by handling only two users per direct chat.
- Adds fallback names for unknown users and ensures the current user is always second in the order.
- Enhances clarity and consistency in user identification for direct chats.
Enhance Chat Display Logic and Enforce Report Restrictions
- Overhauls the README file with a cleaner structure, improved formatting, and added icons for better readability.
- Introduces a table of contents, reorganized sections, and detailed explanations of features, setup, and APIs.
- Reduces verbosity by replacing lists with tables and collapsible sections.
- Enhances navigation and usability for developers.
Enhance README documentation and structure
Fix README index formatting and refactor JoinRoom method
Comment out private room check in AddMemberToRoom method
Comment out user permission check in ReadPump method
Uncomment room join logic in ReadPump method
@LifeRIP LifeRIP merged commit c90bdea into main Jun 25, 2025
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