Skip to content

fix: Skip attachment if stream is empty#1854

Merged
mattjohnsonpint merged 6 commits intomainfrom
fix/attachment-empty-stream
Aug 17, 2022
Merged

fix: Skip attachment if stream is empty#1854
mattjohnsonpint merged 6 commits intomainfrom
fix/attachment-empty-stream

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 15:48
@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.

3 participants