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: getchannelavatarurl function in chatHeader and RoomInformation to Reflect Updated Avatar Changes. #888

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

AyushKumar123456789
Copy link
Contributor

Brief Title

Fix getChannelAvatarURL to Reflect Updated Avatar Changes in rocket.chat.

Acceptance Criteria fulfillment

  • Ensure updated avatars are displayed correctly after changes in Rocket.Chat.
  • Ensure getChannelAvatarURL function handles avatarETag correctly to fetch updated images.

Fixes #887

Video/Screenshots

Room.Avatar.bug.solved.mp4

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval. Contributors are requested to replace <pr_number> with the actual PR number.

@@ -78,7 +84,7 @@ const ChatHeader = ({
);
const workspaceLevelRoles = useUserStore((state) => state.roles);

const { RCInstance, ECOptions } = useRCContext();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any specific reason for removing this and using useContext here ?

@@ -369,7 +385,7 @@ const ChatHeader = ({
<Avatar
size="36px"
style={{ marginRight: '6px' }}
url={getChannelAvatarURL(channelInfo.name)}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same question here

@Spiral-Memory
Copy link
Collaborator

Looks like a great addition, @AyushKumar123456789
Thanks, Just want to make sure on few things

@Spiral-Memory Spiral-Memory added the question Further information is requested label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug : Room/Channel Avatar Not Updating After Changing it in Rocket.Chat
2 participants