-
Notifications
You must be signed in to change notification settings - Fork 226
Fix issues on JoinedRoom / BaseRoom #4724
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
Conversation
…led when the class is destroyed
It should fix a few issues where we rely on the room info to be live, and it was not the case on RustBaseRoom.
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
sessionCoroutineScope = this | ||
) | ||
rustBaseRoom.destroy() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this test is failing if roomCoroutineScope
(child of sessionCoroutineScope
) is not cancelled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also probably double check rustBaseRoom.roomCoroutineScope.isActive
.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4724 +/- ##
===========================================
+ Coverage 80.09% 80.12% +0.03%
===========================================
Files 2129 2129
Lines 56416 56413 -3
Branches 7052 7052
===========================================
+ Hits 45188 45203 +15
+ Misses 8811 8793 -18
Partials 2417 2417 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes!
The test would fail anyway if roomCoroutineScope was still active, but it's more explicit with these assertions.
|
Content
This PR fixes issue detected in the code that could lead to leak.
It may fixes issue related to incoming call not cancelled when answered else where, as well as other issues where the room state was observed.
Motivation and context
Stable code.
Screenshots / GIFs
Tests
Tested devices
Checklist