Wave-2024 / Wave

Open source social media application for android using Flutter and Dart .
GNU Affero General Public License v3.0
4 stars 0 forks source link

Feature Request: Implement Message Reporting and Blocking Functionality #172

Open Alpha17-2 opened 5 months ago

Alpha17-2 commented 5 months ago

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.