-
Notifications
You must be signed in to change notification settings - Fork 170
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
Track errors in VoiceMessagePresenter #1667
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1667 +/- ##
========================================
Coverage 63.24% 63.24%
========================================
Files 1230 1230
Lines 31748 31751 +3
Branches 6534 6534
========================================
+ Hits 20079 20082 +3
Misses 8667 8667
Partials 3002 3002
☔ View full report in Codecov by Sentry. |
scope.launch { | ||
play.runUpdatingState( | ||
errorTransform = { | ||
it.apply { |
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.
The apply
is not necessary, I would simply write
errorTransform = {
analyticsService.trackError(
VoiceMessageException.PlayMessageError("Error while trying to play voice message", it)
)
it
},
to improve readability.
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.
I had it exactly like that before but it looked odd to my eyes so I switched to using apply
😆
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 modulo a minor nit comment.
28bd8ad
to
f0d722c
Compare
Done |
Kudos, SonarCloud Quality Gate passed! |
Story: element-hq/element-meta#2085