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

Extract more content from audio messages. #1607

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

julioromano
Copy link
Contributor

TimelineItemAudioContent:

  • Use java.time.Duration instead of milliseconds. This will ease up things in the future because currently milliseconds are sent over the wire but in the future seconds will be sent (as per the stable MSC). Using Duration will allow our downstream code to be independent of what's passed over the wire.
  • Rename audioSource property to mediaSource to better match its type.

AudioMessageType:

  • Add and populate new fields details and isVoiceMessage to be used by voice messages.

`TimelineItemAudioContent`:
- Use `java.time.Duration` instead of milliseconds. This will ease up things in the future because currently milliseconds are sent over the wire but in the future seconds will be sent (as per the stable MSC). Using `Duration` will allow our downstream code to be independent of what's passed over the wire.
- Rename `audioSource` property to `mediaSource` to better match its type.

`AudioMessageType`:
- Add and populate new fields `details` and `isVoiceMessage` to be used by voice messages.
@julioromano julioromano requested a review from a team as a code owner October 19, 2023 10:27
@julioromano julioromano requested review from jmartinesp and removed request for a team October 19, 2023 10:27
@julioromano julioromano self-assigned this Oct 19, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 2023

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

@github-actions
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/G7tHCE

Copy link
Contributor

@jmartinesp jmartinesp left a comment

Choose a reason for hiding this comment

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

LGTM!

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (79d2941) 58.96% compared to head (0b8c841) 58.94%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1607      +/-   ##
===========================================
- Coverage    58.96%   58.94%   -0.03%     
===========================================
  Files         1199     1201       +2     
  Lines        30965    30981      +16     
  Branches      6343     6345       +2     
===========================================
+ Hits         18259    18261       +2     
- Misses        9959     9973      +14     
  Partials      2747     2747              
Files Coverage Δ
...l/timeline/model/event/TimelineItemAudioContent.kt 100.00% <100.00%> (ø)
...ne/model/event/TimelineItemAudioContentProvider.kt 100.00% <100.00%> (ø)
...ries/matrix/api/timeline/item/event/MessageType.kt 100.00% <100.00%> (ø)
...ctories/event/TimelineItemContentMessageFactory.kt 7.69% <0.00%> (ø)
...android/libraries/matrix/api/media/AudioDetails.kt 0.00% <0.00%> (ø)
...ndroid/libraries/matrix/impl/media/AudioDetails.kt 0.00% <0.00%> (ø)
...rix/impl/timeline/item/event/EventMessageMapper.kt 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@julioromano julioromano merged commit 5a7f77b into develop Oct 19, 2023
13 of 17 checks passed
@julioromano julioromano deleted the julioromano/2_extract_voice_message_data branch October 19, 2023 11:32
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.

None yet

2 participants