[NEW] Support for custom avatar images in channels#18443
[NEW] Support for custom avatar images in channels#18443sampaiodiego merged 41 commits intodevelopfrom
Conversation
…/channel-avatar * 'develop' of github.com:RocketChat/Rocket.Chat: [FIX] Uncaught (in promise) undefined (#18393)
…at into feat/channel-avatar * 'feat/channel-avatar' of github.com:RocketChat/Rocket.Chat: (28 commits)
|
This pull request introduces 3 alerts when merging 25ec0ee into 55703f1 - view on LGTM.com new alerts:
|
|
Also if this is done not from the admin view the saving fails and the browser gives this error: no server crashes this time |
…at into feat/channel-avatar * 'feat/channel-avatar' of github.com:RocketChat/Rocket.Chat: Fix lint
sampaiodiego
left a comment
There was a problem hiding this comment.
I think it is only missing the migration to change the following index to sparse:
https://github.com/RocketChat/Rocket.Chat/pull/18443/files#diff-ad92b619efea94b98cde0dd522014b72R15
…at into feat/channel-avatar
Co-authored-by: Diego Sampaio <[email protected]>
Now it's validating for allowed types!
…omni * 'develop' of github.com:RocketChat/Rocket.Chat: [NEW] Add REST API endpoint to search Livechat visitors (#18514) LingoHub based on develop (#18516) Update README.md (#18503) [NEW] Channel avatar (#18443) [FIX] Sending notifications from senders without a name (#18479) [FIX] UserCard avatar cache (avatarETag) (#18466) [IMPROVE] Admin Info page requires permission (#18408) [FIX] Marking room as read with unread threads still (#18410) [FIX] Random generated password not matching the Password Policy (#18475) Typo in privacy agreement message (#18476) bugfix for uploading files from livechat (#18474) LingoHub based on develop (#18465) [NEW] Add the ability to set the character message limit on Livechat widget (#18261) [FIX] Migration 194 (#18457) [FIX] Omnichannel session monitor is not starting (#18412) [FIX] Invalid MIME type when uploading audio files (#18426) [FIX] Error when updating omnichannel department without agents parameter (#18428) [FIX] Omnichannel Take Inquiry endpoint checking wrong permission (#18446) [FIX] Multiple push notifications sent via native drivers (#18442) [FIX] Appending 'false' to Jitsi URL (#18430)
|
it seems like to wrong issue number was mentioned and an unrelated issue was closed |
|
In Directory search the avatars not shown. |
me too |
In the logs of 3.7.1 the same error appears and as well only, when non-admins are trying to upload an avatar. For admins the feature works as expected. |
|
@BjoernLudwigPTB you can test the release candidate for 3.8.0 .. https://github.com/RocketChat/Rocket.Chat/releases/tag/3.8.0-rc.5 |
Unfortunately I myself cannot. In my organisation I am only administrator on the application side, the deployment is done by colleagues. I asked them to have a look and will report. |
|
In theory you should be able to do that using the |
|
Hi Diego, thanks for your comment. You mean using an undocumented API REST endpoint or you mean the Realtime API? could you share an example call setting an avatarUrl to a rid? thanks |
|
@didacroyo you can do either.. there is an endpoint at you can send a payload with |
|
Just tried adding a channel icon to three different channels on the server. Only 1 time it worked. I am using the latest snap (3.10.5) on Ubuntu 20.04.2 LTS. Not sure why it doesn't work, as my manual installation of another RocketChat server (3.12.0, same droplet specs) never has an issue updating the channel icons. I have tried PNGs, GIFs, and JPGs on both the admin and user interface - nothing seems to work consistently. EDIT: Apparently others on the server can see the channel icons, but not me even after refreshing and ignoring cache, outright closing RocketChat and starting it again, or rebooting the entire server. Odd. |
|
Hi, @sampaiodiego We are using our API to change the avatar of the rooms; but despite of all our efforts, it returns
The response is 200 ok; but the avatar in the room isn't changed, even if we restart the service or reload without cache. We are sending this using PHP And we know that it somehow works, because we can send the key "roomName" and it successfully changes the name; but the image is never shown!!! Thank you in advance for your help. Regards |
|
hi @ArturoRejon , I'm sorry the delay.. looks like the endpoint accepts a so instead of |
|
@sampaiodiego thank you, it works!! |


Proposed changes
Issue(s)
closes #18262
How to test or reproduce
Screenshots
Types of changes
Checklist
Changelog
Further comments