-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor spaceImage getter as getSpaceImage() async (#620)
Should not be doing an async decrypt inside applySnapshot. Timing issue when getting the spaceImage from the streamStateView_Space. `spaceImage` can be undefined while the payload is being decrypted. Instead of doing the decryption inside `applySnapshot`, store the encrypted data only. The caller uses `await streamStateView_Space.spaceContent.getSpaceImage()` to get the decrypted chunked media.
- Loading branch information
1 parent
a60444b
commit e5fa21b
Showing
2 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters