fix: change order of inserting data when creating non-incoming call [WPB-24829]#4132
Merged
Conversation
|
MohamadJaara
approved these changes
May 12, 2026
Contributor
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4132 +/- ##
==========================================
Coverage 61.60% 61.60%
Complexity 4023 4023
==========================================
Files 2057 2057
Lines 67321 67321
Branches 6635 6635
==========================================
+ Hits 41475 41476 +1
Misses 23202 23202
+ Partials 2644 2643 -1
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Contributor
ohassine
approved these changes
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



https://wearezeta.atlassian.net/browse/WPB-24829
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
Issues
Sometimes starting a foreground
CallServicefor the outgoing call fails with:java.lang.IllegalArgumentException: person must have a non-empty a name.Causes (Optional)
The app cannot create a valid outgoing call notification -
CallStylerequires thePersondata and the name cannot be empty.The order of actions when creating a call in some cases is such that the call is inserted into database first and only then the metadata is stored, and the app takes the info from the database to start the service, so it's possible to start a foreground CallService and try to create outgoing call even before the metadata is saved.
Solutions
Change the order for all created calls so that it first saves metadata and only then inserts into a database, so that when fetching calls from database, the metadata is already available.
For new incoming calls the order is already correct, so the change was required for others.
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.