Skip to content

fix: chat spam performance issue & own profile picture #3635

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

Merged
merged 4 commits into from
Mar 20, 2025
Merged

Conversation

lorux0
Copy link
Collaborator

@lorux0 lorux0 commented Mar 19, 2025

What does this PR change?

Fixes a major performance issue while spamming the chat.
Profile pictures for own chat messages were not working because the loading state was not correctly calculated. The chat system sets the profile picture many times in a row and this provokes to cancel the operation in between. We dont consider the load state anymore in the process. We just set the sprite if its already in the cache.

Test Instructions

Spam messages in the chat. Check that you can see your own profile picture. Check that you don't have performance issues.
Check profile pictures in other places, like friends, sidebar, passport, etc.

Quality Checklist

  • Changes have been tested locally
  • Documentation has been updated (if required)
  • Performance impact has been considered
  • For SDK features: Test scene is included

Code Review Reference

Please review our Code Review Standards before submitting.

@lorux0 lorux0 requested review from a team as code owners March 19, 2025 20:13
Copy link
Contributor

github-actions bot commented Mar 19, 2025

@lorux0 lorux0 requested review from fcolarich and removed request for popuz and mikhail-dcl March 19, 2025 20:13
@lorux0 lorux0 changed the title fix: own profile picture at chat message fix: chat spam performance issue & own profile picture Mar 20, 2025
Copy link
Contributor

@anicalbano anicalbano left a comment

Choose a reason for hiding this comment

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

✔️ Verified by QA, profile pics are visible in all areas. Checked:

  • Chat convo
  • Mention
  • Profile pic on nav bar
  • Pic on Add Friend/Friend inside Profile
  • Onside the options bar
  • When sending Friend requests
  • When acceptin
  • Inside friends/requests/blocked

image
image

20.03.2025_15.25.20_REC.mp4

@lorux0 lorux0 merged commit 6b3e761 into dev Mar 20, 2025
7 of 9 checks passed
@lorux0 lorux0 deleted the fix/profile-pics branch March 20, 2025 19:56
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.

4 participants