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

Use the user profile cache as a fallback for usernames/avatars #106

Conversation

kevinaboos
Copy link
Member

@kevinaboos kevinaboos commented Aug 10, 2024

Currently this commit only adds the usage of the user profile cache for the drawing of a profile (user name + avatar) for each timeline event.

Rewrite the avatar_cache to use a thread-local cache only accessible by the main UI thread (just like the user_profile_cache) instead of being based on the media cache.

Addresses #96

Currently this commit only adds the usage of the user profile cache
for the drawing of a profile (user name + avatar) for each timeline event.

Rewrite the avatar_cache to use a thread-local cache only accessible
by the main UI thread (just like the user_profile_cache)
instead of being based on the media cache.
@kevinaboos kevinaboos marked this pull request as draft August 10, 2024 19:41
@kevinaboos
Copy link
Member Author

still needs thorough testing

* Actually handle the avatar-fetching updates from the background task.
* Don't re-send redundant requests if a request to fetch an avatar
  was already submitted previously but has yet to be completed.
@kevinaboos kevinaboos marked this pull request as ready for review August 12, 2024 18:37
@kevinaboos kevinaboos merged commit 56a06ce into project-robius:main Aug 12, 2024
1 check passed
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.

1 participant