Skip to content

Show discussion avatar#14053

Merged
sampaiodiego merged 16 commits intodevelopfrom
show-discussion-avatar
Apr 18, 2019
Merged

Show discussion avatar#14053
sampaiodiego merged 16 commits intodevelopfrom
show-discussion-avatar

Conversation

@sampaiodiego
Copy link
Copy Markdown
Member

@sampaiodiego sampaiodiego commented Apr 8, 2019

Along with the changes below, this PR also removes the suggestion of the channel as name of the discussion.

Closes #14110

Before

Shows the discussion icon instead of an avatar.

image

image

After

Shows the avatar of the room where the discussion started and shows the icon in same place as other icons.

image

image

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-14053 April 8, 2019 22:20 Inactive
@sampaiodiego sampaiodiego added this to the 1.0.0 milestone Apr 11, 2019
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-14053 April 16, 2019 18:43 Inactive
@rodrigok
Copy link
Copy Markdown
Member

@sampaiodiego will this fix the issue #14110 ?

@sampaiodiego
Copy link
Copy Markdown
Member Author

@rodrigok I don't think so.. but I'll check

@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-14053 April 16, 2019 21:25 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-14053 April 17, 2019 12:15 Inactive
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-14053 April 17, 2019 14:49 Inactive

export const getCacheTime = (req) => req.query.cacheTime || settings.get('Accounts_AvatarCacheTime');

export const serveAvatar = (avatar, req, res) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think these functions should receive the express objects (req, res), I think that the express objects, should only be at the level they are received, and not be passed to levels below. 🤔

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe the function should only be moved to another place instead? Because by the name serverAvatar I guess it is theoretically in the same layer as the route handlers 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yep, I guess so.. fixed all other comments btw =)

@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-14053 April 17, 2019 17:50 Inactive
tassoevan
tassoevan previously approved these changes Apr 17, 2019
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-14053 April 17, 2019 20:12 Inactive
Co-authored-by: wreiske
@sampaiodiego sampaiodiego temporarily deployed to rocket-chat-pr-14053 April 17, 2019 21:45 Inactive
rodrigok
rodrigok previously approved these changes Apr 17, 2019
@sampaiodiego sampaiodiego merged commit 535324e into develop Apr 18, 2019
@sampaiodiego sampaiodiego deleted the show-discussion-avatar branch April 18, 2019 12:09
@rodrigok rodrigok mentioned this pull request Apr 28, 2019
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.

[REGRESSION] Avatar on autocomplete seems wrong

6 participants