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

Split VoiceMessageType from AudioMessageType #1664

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

julioromano
Copy link
Contributor

@julioromano julioromano commented Oct 27, 2023

Currently, for compatibility reasons, we implement MSC3245v1 which puts the voice data inside an audio message type. Though at times it seems impractical to deal with a single message type which effectively represents 2 different kinds of messages.

This PR creates a new message type called VoiceMessageType which is used whenever we receive an event with "msgtype": "m.audio" which also has the "org.matrix.msc3245.voice": {} field. This makes it easier to process voice messages as different entities throughout the rest of the codebase.

@julioromano julioromano self-assigned this Oct 27, 2023
@julioromano julioromano requested a review from a team as a code owner October 27, 2023 12:22
@julioromano julioromano requested review from jmartinesp and removed request for a team October 27, 2023 12:22
@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2023

📱 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/jKUCt2

Base automatically changed from julioromano/waveform_float2 to develop October 27, 2023 12:50
Currently, for compatibility reasons, we implement MSC3245v1 which puts the voice data inside an audio message type.
Though at times it seems impractical to deal with a single message type which effectively represents 2 different kinds of messages.
This create a new message type called `VoiceMessageType` which is used whenever we receive an event with `"msgtype": "m.audio"` which also has the `"org.matrix.msc3245.voice": {}` field.
This makes it easier to process voice messages as different entities throughout the codebase.
@julioromano julioromano force-pushed the julioromano/split_audio_message_type branch from bc1b061 to db717e1 Compare October 27, 2023 12:53
@sonarcloud
Copy link

sonarcloud bot commented Oct 27, 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

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

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

Comparison is base (0e41418) 63.22% compared to head (db717e1) 63.21%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1664      +/-   ##
===========================================
- Coverage    63.22%   63.21%   -0.02%     
===========================================
  Files         1228     1228              
  Lines        31693    31706      +13     
  Branches      6526     6531       +5     
===========================================
+ Hits         20039    20042       +3     
- Misses        8656     8664       +8     
- Partials      2998     3000       +2     
Files Coverage Δ
...tformatter/impl/DefaultRoomLastMessageFormatter.kt 95.52% <100.00%> (ø)
...ries/matrix/api/timeline/item/event/MessageType.kt 92.10% <100.00%> (+0.67%) ⬆️
...push/impl/notifications/NotifiableEventResolver.kt 0.00% <0.00%> (ø)
...s/impl/timeline/components/TimelineItemEventRow.kt 60.83% <0.00%> (+0.31%) ⬆️
...ctories/event/TimelineItemContentMessageFactory.kt 7.76% <0.00%> (-0.93%) ⬇️

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

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, thanks!

@julioromano julioromano merged commit a07286a into develop Oct 27, 2023
13 of 16 checks passed
@julioromano julioromano deleted the julioromano/split_audio_message_type branch October 27, 2023 14:02
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