Skip to content
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

VoiceBroadcast: Manage app crash cases when recording #7188

Merged
merged 14 commits into from
Dec 23, 2022

Conversation

phloux
Copy link
Contributor

@phloux phloux commented Dec 19, 2022

Manage cases when the user is recording and the app crash.

@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Base: 11.82% // Head: 11.84% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (b523e8f) compared to base (7428273).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7188      +/-   ##
===========================================
+ Coverage    11.82%   11.84%   +0.01%     
===========================================
  Files         1628     1629       +1     
  Lines       159992   160141     +149     
  Branches     65224    65373     +149     
===========================================
+ Hits         18924    18961      +37     
- Misses      140430   140543     +113     
+ Partials       638      637       -1     
Flag Coverage Δ
uitests 54.84% <ø> (+0.10%) ⬆️
unittests 5.96% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Riot/Categories/MXRoom+VoiceBroadcast.swift 0.00% <0.00%> (ø)
...Recents/Service/MatrixSDK/RecentsListService.swift 12.70% <0.00%> (-0.40%) ⬇️
.../Recents/Service/Mock/MockRecentsListService.swift 0.00% <0.00%> (ø)
Riot/Modules/Room/RoomViewController.m 0.00% <0.00%> (ø)
Riot/Modules/Room/RoomViewController.swift 0.00% <0.00%> (ø)
...t/VoiceBroadcastSDK/VoiceBroadcastAggregator.swift 0.00% <0.00%> (ø)
...cast/VoiceBroadcastSDK/VoiceBroadcastService.swift 0.00% <0.00%> (ø)
Riot/Utils/EventFormatter.m 8.66% <0.00%> (-1.30%) ⬇️
...herSessions/View/UserOtherSessionsHeaderView.swift 52.83% <0.00%> (-0.88%) ⬇️
...ionsOverview/View/SecurityRecommendationCard.swift 82.60% <0.00%> (-0.25%) ⬇️
... and 22 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@giomfo giomfo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the current changes seem good to me
I let you commit the additional changes (on recents handling)

Riot/Modules/Room/RoomViewController.swift Outdated Show resolved Hide resolved
Riot/Modules/Room/RoomViewController.swift Outdated Show resolved Hide resolved
@phloux phloux marked this pull request as ready for review December 21, 2022 13:01
@phloux phloux requested a review from giomfo December 21, 2022 13:01
…he breadcrumbs rooms list

By considering potential performance issues, we decided to limit the uncompleted VB cleaning in the recents list service:
- we run the process only once when the application is resumed
- we run the process only on the breadcrumbs rooms list

This prevent us from checking several times in parallel the same room (because a room may be listed in several recents sections)
This prevent us from checking several times the same room (each room should be checked only once after the app resume)
If a room is not checked from the recents list, a sanity check is still done in RoomViewController (to clean the room when the user opens it)
@sonarcloud
Copy link

sonarcloud bot commented Dec 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@yostyle
Copy link
Contributor

yostyle commented Dec 23, 2022

LGTM

@giomfo giomfo merged commit ece07c4 into develop Dec 23, 2022
@giomfo giomfo deleted the phlpro/voice_broadcast_handle_app_crash branch December 23, 2022 14:25
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