-
Notifications
You must be signed in to change notification settings - Fork 156
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
Hide media preprocessing #3943
Hide media preprocessing #3943
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3943 +/- ##
===========================================
+ Coverage 82.96% 82.98% +0.01%
===========================================
Files 1789 1789
Lines 45234 45279 +45
Branches 5341 5347 +6
===========================================
+ Hits 37529 37573 +44
- Misses 5830 5831 +1
Partials 1875 1875 ☔ View full report in Codecov by Sentry. |
This improve code coverage since some default value was never used.
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.
Some remarks
@@ -63,19 +77,62 @@ class AttachmentsPreviewPresenter @AssistedInject constructor( | |||
|
|||
val ongoingSendAttachmentJob = remember { mutableStateOf<Job?>(null) } | |||
|
|||
val userSentAttachment = remember { |
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.
It's a bit weird to use StateFlows in the Presenter, we are supposed to use compose in this layer
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.
} | ||
|
||
val mediaUploadInfoStateFlow = remember { MutableStateFlow<AsyncData<MediaUploadInfo>>(AsyncData.Uninitialized) } | ||
var prePropressingJob: Job? = null |
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 job is not remember here?
Also, I don't think we need the job, just cancel all coroutines from the scope?
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.
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.
Thanks for the changes, LGTM!
Quality Gate passedIssues Measures |
Content
Pre-process the media to upload during the preview so that it can be sent instantly.
2 scenarii:
Motivation and context
Closes #3938
Screenshots / GIFs
SendMediaNoDialog.mp4
Tests
Second test
Tested devices
Checklist