Skip to content

fix: Update room data in storage when adding a file#170

Merged
juliusknorr merged 1 commit intomainfrom
fix/redis-files
Sep 18, 2024
Merged

fix: Update room data in storage when adding a file#170
juliusknorr merged 1 commit intomainfrom
fix/redis-files

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
@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