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: Skip attachment if stream is empty #1854

Merged
merged 6 commits into from Aug 17, 2022

Conversation

bitsandfoxes
Copy link
Contributor

Background: In Unity, we attach a screenshot attachment to the scope so when GetStream gets called we return a MemoryStream. In some circumstances, i.e. on a background thread, we cannot actually capture the screen and we return an empty MemoryStream.

To avoid adding an empty EnvelopeItem we check for it first and warn.

@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) August 17, 2022 15:42
@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) August 17, 2022 16:27
@mattjohnsonpint mattjohnsonpint merged commit 4c662d7 into main Aug 17, 2022
@mattjohnsonpint mattjohnsonpint deleted the fix/attachment-empty-stream branch August 17, 2022 16:40
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.

None yet

3 participants