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: Update room data in storage when adding a file #170

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Sep 17, 2024

As noticed by @szaimen when using the redis storage strategy files were not persisted in the room data so they were missing on the saved file and not available to other users.

This fixes it by updating the room data after adding a file. With the LRU strategy this is not an issue as the object is just in memory so using addFile was enough to propagate it to the room state.

@juliusknorr juliusknorr added the bug Something isn't working label Sep 17, 2024
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@juliusknorr juliusknorr merged commit 9fa7241 into main Sep 18, 2024
23 checks passed
@juliusknorr juliusknorr deleted the fix/redis-files branch September 18, 2024 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants