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] Avatars of other chats disappear when they located near chat with broken avatar #26689

Merged
merged 3 commits into from
Aug 25, 2022

Conversation

filipemarins
Copy link
Contributor

@filipemarins filipemarins commented Aug 25, 2022

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

  1. Have one user or chat with a broken avatar on the sidebar (You can reproduce it by blocking an avatar URL on the network tab in the browser)
  2. Grap any chat below the chat with a broken avatar and send a message. (It will force reorder the chat position on the sidebar)
  3. Look at other chats near that chat with a broken avatar - their avatars disappear
Screen.Recording.2022-08-25.at.16.05.48.mov

Further comments

During the list re-render on the sidebar, React was have some issues rendering the correct element for the room avatar component, passing a key prop to a component will allow React engine track better dom changes.

@filipemarins filipemarins requested a review from a team as a code owner August 25, 2022 19:22
@ggazzo ggazzo added stat: QA skipped stat: ready to merge PR tested and approved waiting for merge and removed stat: needs QA labels Aug 25, 2022
@codecov
Copy link

codecov bot commented Aug 25, 2022

Codecov Report

Merging #26689 (e19cf0b) into develop (10932a5) will increase coverage by 0.14%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #26689      +/-   ##
===========================================
+ Coverage    38.52%   38.66%   +0.14%     
===========================================
  Files          793      793              
  Lines        18900    18900              
  Branches      1939     1939              
===========================================
+ Hits          7281     7308      +27     
+ Misses       11328    11302      -26     
+ Partials       291      290       -1     
Flag Coverage Δ
e2e 38.66% <ø> (+0.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@ankar84
Copy link

ankar84 commented Aug 26, 2022

Thanks a lot!!!

gabriellsh added a commit that referenced this pull request Aug 26, 2022
…hreads

* 'develop' of github.com:RocketChat/Rocket.Chat: (93 commits)
  Chore: Upgrade dependencies (#26694)
  Chore: More Omnichannel tests (#26691)
  Regression: Banner - Room not found - Omnichannel room (#26693)
  [NEW] Capability to search visitors by custom fields (#26312)
  Chore: Create tests for Omnichannel admin add a custom fields (#26609)
  [FIX] Avatars of other chats disappear when they located near chat with broken avatar (#26689)
  [IMPROVE] Added identification on calls to/from existing contacts (#26334)
  Regression: invalid statistics format  (#26684)
  Regression: "Cache size is not a function" error when booting (#26683)
  [FIX] Correct IMAP configuration for email inbox (#25789)
  [FIX] Active users count on `@all` and `@here`  (#25957)
  [FIX] Autotranslate method should respect setting (#26549)
  Chore: Remove italic/bold font-style from system messages (#26655)
  Chore: Convert AppSetting to tsx (#26625)
  Chore: Remove & Test old closeChat templates (#26631)
  [IMPROVE] General federation improvements (#26150)
  [NEW] Warn admins about running multiple instances of the monolith (#26667)
  Regression: Prevent message from being temp forever (#26668)
  Regression: Add alsoSendThreadToChannel to user settings api (#26663)
  [IMPROVE] Spotlight search user results (#26599)
  ...
csuadev pushed a commit that referenced this pull request Aug 26, 2022
…th broken avatar (#26689)

Co-authored-by: gabriellsh <40830821+gabriellsh@users.noreply.github.com>
@murtaza98 murtaza98 mentioned this pull request Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants