Skip to content

Conversation

@FelipeParreira
Copy link

Proposed changes

Allow non-admins to change room avatar.

Issue(s)

#18894

How to test or reproduce

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Hotfix (a major bugfix that has to be merged asap)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Changelog

Allow non-admins to change room avatar.

Further comments

@pierre-lehnen-rc pierre-lehnen-rc self-assigned this Sep 21, 2020
Copy link
Contributor

@pierre-lehnen-rc pierre-lehnen-rc left a comment

Choose a reason for hiding this comment

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

This change is causing avatars to not be resized even when the setting is on.

@sandrotanner
Copy link

sandrotanner commented Sep 23, 2020

@pierre-lehnen-rc well only if it is a room avatar. Since the option for resizing avatars is under "Accounts" it makes sense that it only applies to Accounts.

But yes, the whole avatar system should probably be cleaned out a bit. This PR would work, but it would make this part of the codebase a bit more messy.
I think the logic for weather it is a room avatar or a user avatar should happen further up.

Sadly I don't know Meteor...

On the other hand this is a hotfix for a quite important issue imho so I would very much like to see it merged in 3.7.0

@sandrotanner
Copy link

I am confused.This is in the Project https://github.com/RocketChat/Rocket.Chat/projects/54#card-45883577 but 3.7.0 has been released now and this is apparently not in it...

@klepptor
Copy link

klepptor commented Sep 29, 2020

Yes, unfortunately still not fixed in 3.7.0:

I20200929-10:57:49.543(0) Exception in setTimeout callback: TypeError: Cannot read property 'etag' of undefined at app/lib/server/functions/setRoomAvatar.js:34:46 at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12) at packages/meteor.js:550:25 at runWithEnvironment (packages/meteor.js:1286:24)

Wouldn't it make sense to fix already released features rather then releasing another bunch of new features every few weeks with new bugs??

@juzser
Copy link
Contributor

juzser commented Oct 13, 2020

Still happened in 3.7.1.

@pierre-lehnen-rc pierre-lehnen-rc added this to the 3.8.0 milestone Oct 13, 2020
@sandrotanner
Copy link

Thank you @pierre-lehnen-rc!

Does anybody know when this might be in a stable release?

@sampaiodiego sampaiodiego merged commit a511abd into develop Oct 25, 2020
@sampaiodiego sampaiodiego deleted the hotfix-change-room-avatar-permission branch October 25, 2020 01:01
@sandrotanner
Copy link

Thx @sampaiodiego

@sampaiodiego sampaiodiego mentioned this pull request Nov 14, 2020
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.

7 participants