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

[FIX] Hides nav buttons when selecting own profile #6760

Merged
merged 2 commits into from
Apr 24, 2017

Conversation

gdelavald
Copy link
Contributor

@RocketChat/core

Closes #6726

This hides most of the interaction buttons when opening your own profile from a chat room or direct message. The changes are basically adding a helper function to check if the open userInfo is your own and adding a check on the layout to show or hide based on that.

Adding screenshots for the different cases:

When viewing profile from another person in a public/private room as a normal user:
other profile in public room as user
When viewing your own profile in public room:
self profile in public room
When viewing profile from another person in public/private chat as admin:
other profile in public room as admin
When viewing profile from another in direct chat:
other profile in direct
When viewing your own profile in direct chat:
self profile in direct

@rodrigok rodrigok merged commit 1566f7e into RocketChat:develop Apr 24, 2017
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.

4 participants