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

Hide deactivated users in iOS #8093

Open
wants to merge 1 commit into
base: release-2.17
Choose a base branch
from

Conversation

Juliet879
Copy link

Summary

Do now show deactivated users in iOS Mobile

Ticket Link

#8074

Device Information

This PR was tested on: iPhone 15 Pro

Screenshots

Simulator Screenshot - iPhone 15 Pro - 2024-07-15 at 12 36 39

Release Note

NONE

@mattermost-build
Copy link
Contributor

Hello @Juliet879,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@rahimrahman rahimrahman changed the base branch from release-2.17 to main July 23, 2024 13:54
@rahimrahman rahimrahman changed the base branch from main to release-2.17 July 23, 2024 13:55
Comment on lines +124 to +126
if (deactivated) {
return null;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this cause all users deactivated to no longer be displayed? Could you help me clarify that it will not affect other places vs Create Direct Message screen?

Also, take a look at this chunk of code:

        if (restrictDirectMessage) {
            results = await searchProfiles(serverUrl, lowerCasedTerm, {team_id: currentTeamId, allow_inactive: true});
        } else {
            results = await searchProfiles(serverUrl, lowerCasedTerm, {allow_inactive: true});
        }

@larkox you've made some changes on the chunk of code above, would it be the right way to only show active users?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, @rahimrahman . Removing the allow_inactive should return us the list of users without deactivated users. That seems to be the right way to do this in this case.

0/5 on whether this will create any problem, like when trying to access old dms with deactivated users, but maybe we can access that in a different way.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rahimrahman @larkox thank you for the feedback will adjust this accordingly

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you all folks for your persistence and collaboration to make it happen, - so much looking forward to the fix here from 8074

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@arsenyspb
Copy link

@Juliet879 do you think you can revitalize this PR and merge your changes please... thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants