Skip to content

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

Merged
rodrigok merged 2 commits into
RocketChat:developfrom
gdelavald:hide-nav-buttons-for-self
Apr 24, 2017
Merged

[FIX] Hides nav buttons when selecting own profile#6760
rodrigok merged 2 commits into
RocketChat:developfrom
gdelavald:hide-nav-buttons-for-self

Conversation

@gdelavald

Copy link
Copy Markdown
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

@engelgabriel engelgabriel added this to the 0.56.0 milestone Apr 22, 2017
@engelgabriel engelgabriel requested a review from karlprieb April 22, 2017 13:24
@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