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

Support muted users #1546

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Support muted users #1546

wants to merge 5 commits into from

Commits on Sep 20, 2024

  1. model: Add muted_users to intial_data_to_fetch.

    The muted users are stored in muted_users list of Model class.
    Tests adapted.
    
    Co-authored by: Subhasish-Behera <greendoor3000@gmail.com>
    rsashank committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    68ab15e View commit details
    Browse the repository at this point in the history
  2. model/api_types: Handle muted_user event.

    Update the muted_user list after a muted_user event.
    Add MutedUserEvent to api_types.
    
    Co-authored by: Subhasish-Behera <greendoor3000@gmail.com>
    rsashank committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    6f1fcce View commit details
    Browse the repository at this point in the history
  3. model: Add is_user_muted method.

    Test added.
    rsashank committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    a7d0d10 View commit details
    Browse the repository at this point in the history
  4. messages: Changes made in MessageBox for muted_messages.

    The content shown for the message is changed. The recepient header shows
    muted_user instead of original name. The name of the author is also
    changed to muted_user.
    
    Tests Adapted.
    
    Co-authored by: Subhasish-Behera <greendoor3000@gmail.com>
    rsashank committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    3937ee2 View commit details
    Browse the repository at this point in the history
  5. views: Remove muted_users from user_list.

    Skip user from showing in user list if user is muted.
    Test updated.
    
    Co-authored by: Subhasish-Behera <greendoor3000@gmail.com>
    rsashank committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    10ad48b View commit details
    Browse the repository at this point in the history