Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Implement Message Reporting and Blocking Functionality #172

Open
Alpha17-2 opened this issue Jun 13, 2024 · 0 comments
Open
Labels
Feature required New feature or request

Comments

@Alpha17-2
Copy link
Collaborator

Description

Implement a feature to allow users to select and report a message. After reporting a message, prompt the user to ask if they want to block the other user. This feature will include creating a Report class model to manage reported messages.

Requirements

  1. Message Selection:

    • Allow users to select a message to report.
    • Provide a user interface for reporting a message.
  2. Report Model:

    • Create a Report class model to handle reported messages.
    • Include necessary fields such as reportId, messageId, reportedBy, reportedUser, reason, and timestamp.
  3. Report Handling:

    • Implement a method to submit the report to the Firebase database.
    • Store reported messages in a dedicated collection in Firebase.
  4. User Prompt:

    • After reporting a message, prompt the user to ask if they want to block the reported user.
    • Provide an option to block the user, which will add the reported user to the block list of the reporting user.
  5. Blocking Functionality:

    • Implement a method to block a user by adding them to the block list in the database.
    • Ensure blocked users cannot send messages to the user who blocked them.
@Alpha17-2 Alpha17-2 added the Feature required New feature or request label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature required New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant