-
Notifications
You must be signed in to change notification settings - Fork 6
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: app stuck on setting up wire after account creation #2044
Conversation
private val callManagerHolder: ConcurrentMutableMap<QualifiedID, CallManager> by lazy { | ||
ConcurrentMutableMap() | ||
private val callManagerHolder: ConcurrentMap<QualifiedID, CallManager> by lazy { | ||
ConcurrentHashMap() |
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.
in jvm we do not need to use statly since java already have ConcurrentHashMap
Codecov Report
@@ Coverage Diff @@
## develop #2044 +/- ##
=============================================
+ Coverage 57.97% 57.99% +0.01%
Complexity 24 24
=============================================
Files 1006 1006
Lines 37667 37667
Branches 3411 3411
=============================================
+ Hits 21839 21844 +5
+ Misses 14372 14366 -6
- Partials 1456 1457 +1
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed Test Services
|
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
app stuck on setting up wire after creation an account
Solutions
the function inside the unti
computeIfAbsent
is not being called for a tricky reasonConcurrentMutableMap inherent from MutableMap and in java HashMaps already have a
computeIfAbsent
and in runtime the one form parent is called ignoring the extension functionthis can be confirmed by the app still compiling if I simply delete the extension function we added and kipping everything else as it is
solution: rename it to something else
i also noticed that the calling manager function
getCallManagerForClient
is not thread safe, so I fixed this as well.Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.