-
Notifications
You must be signed in to change notification settings - Fork 232
Rework the way we init and close the RustMatrixRoom #957
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
… the RustMatrixRoom. Should improve #951.
innerRoom.backPaginationStatusFlow() | ||
.onEach { | ||
_timeline.postPaginationStatus(it) | ||
return if (isInit.getAndSet(true)) { |
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.
should be !isInit.getAndSet(true)
or use compareAndSet(false,true)
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.
Are you sure? I have swapped the 2 blocks to avoid the negation (and the code is working, even if I do not think it fixes the issue at all, so the draft status of the PR :))
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.
Ah yes, sorry I missread. I'll push some more commits here, I have a "fix"
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #957 +/- ##
===========================================
- Coverage 56.74% 56.66% -0.08%
===========================================
Files 974 977 +3
Lines 24681 24726 +45
Branches 5009 5011 +2
===========================================
+ Hits 14005 14012 +7
- Misses 8459 8495 +36
- Partials 2217 2219 +2
☔ View full report in Codecov by Sentry. |
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM, and I confirm that the issue is fixed. I cannot approve the PR though, maybe @jmartinesp can have a fresh look on it? Thanks!
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.
LGTM!
Rework the way we init and close the RustMatrixRoom.
Closes #951.
We will be careful when integrating Appyx 2.0.0 regarding potential changes about lifecycle of Node and View...